Developing with ZBOSS for Zigbee
|
This light sample demonstrates a basic Zigbee network. It provides a minimal implementation of the following devices:
The light coordinator establishes the network and commissions the dimmable light device and the light control. If the hardware supports LEDs, LED1 indicates the program start.
Once the light control is successfully commissioned, it sends a broadcast message to find any device with implemented Level Control and On/Off clusters. It remembers the device network address from the first response. Once the dimmable light device is discovered, the light control starts sending a periodical On/Off commands with a 15-sec period.
The dimmable light device joins the Zigbee network and waits for a light control to join the network.
Both On/Off and Level Control clusters are supported. The device state and brightness level are stored in non-volatile memory, so the the device's parameters are restored after each power-cycle.
If the hardware supports LEDs:
To test this sample: