Hi,
I would like to know more about INVALID_PARAMETER value and its meaning.
My code basically polls the serial port until the dongle is inserted into the socket.
Once inserted the thread get notified and start the restore network procedure. (Procedure that sees AF_REGISTER and BDB Commissioning)
I wait for 10 seconds, just to be sure that the restore is completed.
And then start polling my end-devices, to check which one is online, by reading the 'local temperature' attribute of each one.
Now, the end-devices are both connected to a router so when I restore the network and the router still hasn't fully connected to the dongle I get a NWK_NO_ROUTE status error, until the connection is made, which makes sense.
The problem is that sometimes when I repeat the steps and send the AF_DATA_REQUEST I get an INVALID_PARAMETER status (0x02) and I don't really know why and to be honest I don't even know the meaning of it.
Hardware:
- CC2562P Sonoff dongle
- Thermostat
- Temperature Sensor
Software:
- ZigBee 3.0.X
(If you find any information confusing, I would be more than glad to resolve the doubt)
Best Regards,
Luca Vetri.