[Tinyos-help] Need help with localtime interface

Kartik Siddhabathula siddhabathulakartik at yahoo.com
Tue Apr 20 05:55:49 PDT 2010

Hi All,
I am using tinyos-2.x and telosb motes. I am 
using the LocalTime.get and storing the values in 2 variables and 
subtracting them. My first value is stored at boot up and 2nd value is 
on pressing the user button on telosb. Since the time is a 32 bit number
 am storing it in 32 bit variable. After subtracting the two values am 
converting the result into 16 bit variable and displaying it. 

The values that am getting are no matter how much 
time gap I take to press the button from the booting time is:
 FFFF-F32. FFFF-633. FFFF-19
4. FFFF-27

Please find attached the code.

Thanks in advance,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20100420/9be709f0/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BroadcastC.nc
Type: application/octet-stream
Size: 3770 bytes
Desc: not available
Url : https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20100420/9be709f0/attachment.obj 

More information about the Tinyos-help mailing list