zsmartsystems / com.zsmartsystems.zigbee

ZigBee Cluster Library Java framework supporting multiple dongles
Eclipse Public License 1.0
143 stars 88 forks source link

Improve error handling during Ember network initialisation #1266

Closed cdjackson closed 3 years ago

cdjackson commented 3 years ago

This adds a check when performing the energy scan to make sure that at least one channel has a better energy value than the CCA level. If not, an error is thrown. The error return from the network initialisation now propagates back to the startup and can cause the network start to fail in the event that the scan finds all channels are too noisy. Signed-off-by: Chris Jackson chris@cd-jackson.com