Control Data Point of Multiple Devices

Last Updated on : 2022-01-10 05:46:34download

Control the same data point of multiple devices. This way, you can control the devices in bulk.

API address

POST: /v1.0/iot-02/lighting/devices/dp

Request parameter

Description of body

Parameter nameTypeINRequiredDescription
spaceIdStringbodytrueThe ID of a specified space.
deviceIdsString[]bodytrueThe list of device IDs.
dpCodeStringbodytrueThe code of a specified data point.
dpValueStringbodytrueThe value of a specified data point.

Return parameter

Parameter nameTypeDescription
resultBooleanThe returned result.

Request example

POST: /v1.0/iot-02/lighting/devices/dp

Return example

    "result": true,
    "t": 1640680709211,
    "success": true

Error code

For more information, see error code.