ninjasphere / driver-go-zigbee

Ninja Sphere - ZigBee Driver
MIT License
18 stars 7 forks source link

Workaround zigbee startup race #2

Closed jonseymour closed 10 years ago

jonseymour commented 10 years ago

The zstack daemons take a while to start and remain stable.

Until we have seem them start and be stable for 1 second, there is no point proceeding with the driver initialization.

So, we wait until we see /var/run/zigbee.stable, then we attempt to connect to the network.

The state of /var/run/zigbee.stable is managed by zigbeeHAgw in zigbee-cc2530-serial