Query Status of Charging Port

Last Updated on : 2023-06-21 07:12:59download

Query the usage status of the charging ports, including port charging status, fault status, and remaining available time.

API address

GET: /v1.0/iot-02/charging-pile/device/port-status

Request parameter

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

Return parameter

Parameter name Type Description
result List The status of charging ports.

Description of result

Parameter name Type Description
port String The charging port number.
port_switch Integer The charging status. Valid values:
  • 1: charging.
  • 0: idle.
fault_status Integer The fault status of charging ports.Valid values:
  • 1: normal charging.
  • 2: float charging.
  • 3: the battery is full.
  • 4: the charging expires.
  • 5: actively power off.
  • 6: overcurrent.
  • 7: high temperature.
  • 8: battery fault.
  • 9: leakage.
charging_time Integer The charging time elapsed. Unit: seconds.
remain_charge_time Integer The remaining charging time. Unit: seconds.

Request example

GET: /v1.0/iot-02/charging-pile/device/port-status
{ "device_id": "6052502784f3eb57****" }

Return example

{ "result": [ { "port_switch": 1, "charging_time": 1000, "fault_status": 1, "port": "10", "remain_charge_time": 500 } ], "t": 1630056214213, "success": true }

Error code

For more information, see error code.