[Tinyos-help] Alarm32khz32C produces some warnings
Greg Hackmann
gwh2 at cse.wustl.edu
Mon Feb 9 07:45:42 PST 2009
Ittipong Khemapech wrote:
> *1st: called asynchronously*
>
> Payload.getPayload called asynchronously from DataSendAlarm.fired
> AMSend.send called asynchronously from DataSendAlarm.fired
You should read Section 4.5 of the TinyOS Programming Guide
(http://www.tinyos.net/tinyos-2.x/doc/pdf/tinyos-programming.pdf) if it
isn't clear why you're getting this warning.
The simplest fix is to move all of your computations from
DataSendAlarm.fired() into a task. Then handle the
DataSendAlarm.fired() event by posting that task. Or, you could use
TinyOS's built-in AlarmToTimerC component to transform the Alarm
interface into a Timer interface.
Greg Hackmann
More information about the Tinyos-help
mailing list