Skip to main content
Version: 2.0.0@Current

Check the status of the devices under your account permissions.

Device status

StatusDescription
NORMALNormal on-grid power generation; Off-grid power generation
OFFLINEOffline: No data packets received from the device for 5 minutes.
STANDBYStandby, Upgrading
FAULTFaulty

Query device status

✨ Example

Request

curl '{{EU}}/wrapper/device/getDeviceStatus?deviceSn=A212300164230043' \
-H 'token: xxx'

Response ①

{
"errorCode": 0,
"info": null,
"body": "OFFLINE",
"successful": true
}

Response ②

{
"errorCode": 1,
"info": {
"code": "You do not have permission for this device.",
"description": "You do not have permission for this device."
},
"body": null,
"successful": false
}

Query multiple devices' status

Words query up to 50 devices at a time.

✨ Example

Request

curl -X POST '{{EU}}/wrapper/device/batchGetDeviceStatuses' \
-H 'token: XXX' \
-H 'Content-Type: application/json' \
-d '{"deviceSns": ["A002300132602057", "A212300152332046", "A11240010034102B", "B112300106530072"]}'

Response ①

{
"errorCode": 0,
"info": null,
"body": {
"A11240010034102B": "NORMAL",
"A002300132602057": "OFFLINE",
"A212300152332046": "OFFLINE"
},
"successful": true
}

Response ②

{
"errorCode": 1,
"info": {
"code": "Batch size should not over 50",
"description": "Batch size should not over 50"
},
"body": null,
"successful": false
}