Hi guys,

In TinyOS 2.1.1, isn't it erroneous to have the line

call Lpl.setRemoteWakeupInterval(msg, call
SystemLowPowerListening.getDefaultRemoteWakeupInterval());

inside LplAMSenderP.nc's AMSend.send? It would end up overriding the call
to Lpl.setRemoteWakeupInterval from inside the main application code,
usually called before invoking AMSend.send.

With that line in there the wakeup interval of the receiver would always be
taken from the value of the compilation flag
-DLPL_DEF_REMOTE_WAKEUP(because of the call to
SystemLowPowerListening.getDefaultRemoteWakeupInterval()). Or, if that is
not set, the node would assume that the value of the receiver's wakeup
interval is 0, as set in Lpl.h.

I discovered that the only wall to make the line

call Lpl.setRemoteWakeupInterval

from inside the application code have any effect is to comment out its
"doppelganger" inside LplAMSenderP.nc's AMSend.send.

Is this correct, or am I missing something?

Thanks!
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to