[EMAIL PROTECTED] wrote: > Hi > > when I post a task, for instance the example in the > tutorials\BlinkTask\BlinkTaskC, > post toggle() implicitly uses an instance of the TaskBasic interface, > but in the SchedulerBasicP component,TaskBasic.postTask command has a > parameter[uint8_t id]. > But when I post the task toggle() in the BlinkTaskC, I didn't specify > the parameter. > So I'm confused where the value of the parameter comes from? Thanks
nesC automatically generates a unique ID for each task. When you post a task, nesC internally converts this command into calling TaskBasic.postTask(...) with the corresponding task ID. Greg Hackmann _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
