Ask if the Datalogger is in a firmware upgrade state
Parameter | Description | Required |
---|---|---|
action | queryCollectorFirmwareUpgradeStatus | True |
pn | Datalogger number | True |
response:
Parameter | Description | Required |
---|---|---|
status | Firmware upgrade status, 0: The Datalogger is currently being upgraded, and the progress below is only meaningful at this time, !0: The Datalogger is not being upgraded | True |
key | Unique identifier for firmware upgrade task. If the Datalogger is in the process of firmware upgrade, this identifier can be used to query the upgrade progress | False |
progress | Firmware upgrade progress 0~1000, representing 0%~100.0% | False |
{
"err":0,
"desc":"ERR_NONE",
"dat":{
"key":"1fa0b3a0872b7257aa7908e",
"status":0,
"progress":999
}
}
Possible errors:
Response error code | Description | Details |
---|---|---|
0x0006 | ERR_FORMAT_ERROR | Parameter error |
0x0101 | ERR_NOT_FOUND_COLLECTOR | Unable to find Datalogger |