Closed jviguera closed 4 years ago
The update status callback expects an integer percentage, so pass a 0 instead of None.
This prevents the XNM creating a status JSON with a null percentage:
{ "client-id" : "myMQTTClientID", "request" : "profile-update", "timeout" : 13, "max-sleep-time" : 120, "status" : [ { "xpro-file" : "/etc/config/xbee-profiles/profile_1009_NI.xpro", "node" : { "64bit" : "0013A2004195C889", "16bit" : "FFFE" }, "pct" : null, "code" : 2, "desc" : "In progress: Reading device parameters" } ] }
Signed-off-by: Javier Viguera javier.viguera@digi.com
The update status callback expects an integer percentage, so pass a 0 instead of None.
This prevents the XNM creating a status JSON with a null percentage:
{ "client-id" : "myMQTTClientID", "request" : "profile-update", "timeout" : 13, "max-sleep-time" : 120, "status" : [ { "xpro-file" : "/etc/config/xbee-profiles/profile_1009_NI.xpro", "node" : { "64bit" : "0013A2004195C889", "16bit" : "FFFE" }, "pct" : null, "code" : 2, "desc" : "In progress: Reading device parameters" } ] }
Signed-off-by: Javier Viguera javier.viguera@digi.com