Hornet Poll
Hornet is a poll-sleep state machine. Developers are responsible for implementing two poll functions.
The Hornet’s stack polling and developer provided poll functions are executed within single thread.
In each iteration, the stack’s polling are called first followed by custom polling functions, followed a possible sleep.
Developers’ Responsibilities - Poll
Developers are responsible for implementation two poll functions, called in the order listed below:
aps_impl_poll()
- Only called if the device joined a network. It mainly deals with wirelessly sending messages and processing received messages.hornet_firmware_poll()
- Always called. This is the polling that drives the device firmware logics.