Control Single Data Point of Single Device

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

Control one single data point of one device. It is often used for low-frequency simple control.

API address

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

Request parameter

Description of body

Parameter nameTypeINRequiredDescription
spaceIdStringbodytrueThe ID of a specified space.
deviceIdStringbodytrueThe device ID.
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/device/dp

Error code

For more information, see error code.