nymea / nymea-zigbee

Zigbee library and tools for the nymea IoT stack.
GNU Lesser General Public License v3.0
3 stars 4 forks source link

Timeout ZDO replies #41

Closed mzanetti closed 2 years ago

mzanetti commented 2 years ago

I've been observing devices that won't reply to ZDO node descriptor requests, at least not on the first attempt as well as out-of-spec devices which claim to have an endpoint x but then won't reply on getting the endpoint descriptor.

I have a Lumi (lumi.sensor_switch.aq2) button here which allows to reproduce both of those. It will never reply on the first attemt.

Anyhow, it happens that the ZDO, waiting on the data indication never finishes because there does not seem to be a timeout connected to it and it fails initialisation. Adding a timeout, the code retries and it seems to succeed on the second attempt.