Top Up Electrical Device

Last Updated on : 2023-06-15 05:59:44

Top up a specified electrical device.

API address

POST: /v1.0/iot-03/power-devices/{device_id}/charge

Request parameter

Parameter name Type IN Required Description
device_id String uri true The device ID.

Description of body

Parameter name Type IN Required Description
value Double true The top-up value.

Return parameter

Parameter name Type Description
result Boolean
  • true: Topped up the device successfully.
  • false: Failed to top up the device.

Request example

POST: /v1.0/iot-03/power-devices/6c814919a3f54f****/charge
{ "value": 15 }

Return example

{ "result": true, "t": 1637834199152, "success": true }

Error code

For more information, see error code.