English
English
简体中文
Contact Us
Register
Log In

Top Up Electrical Device

Last Updated on : 2021-12-11 08:11:21download

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.