...
The 04-syncblink
sample application showcases the network-wide synchronization of a
excerpt-include | ||||
---|---|---|---|---|
|
...
Info | ||||||
---|---|---|---|---|---|---|
While nodes in a
|
Implementation Details
...
The sample application consists of the task blinkTask
which a task which arms a timer, waits for it to expire, and blink blinks the blue LED.
It uses dn_getNetworkTime()
to to retrieve the current network time, and arms the timer so it expires the next time the ASN counter is integer divisible by 256. Since all nodes increment their ASN at the same time, this event happens at the same time on all nodes in the network.