You can use the component CounterMilli32C if you want millisecond precision. I am using it myself with tmotes.
components new CounterToLocalTimeC(TMilli); components CounterMilli32C; CounterToLocalTimeC.Counter -> CounterMilli32C; Hope it helps. --Mehedi On 6/21/07, Min Guo <[EMAIL PROTECTED]> wrote:
I want to get the local time of tmote sky. I see there is a command "get()" in the interface "LocalTime". This command gets the local time of the mote by using counter. However, I am not sure which component provides this interface. When I try using the component "CounterToLocalTimerC", I get the following error: /opt/tinyos-2.x/tos/lib/timer/CounterToLocalTimeC.nc( TimeSyncC.CounterToLocalTimeC):44: Counter.get not connected I dont know how to use this CounterToLocalTimerC. Does anyone know how to use it? Or is there any other good way to get the local time of a mote? Best regards, Min
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
