English
English
简体中文
Contact Us
Register
Log In

Control Single Data Point of Single Device

Last Updated on : 2022-09-07 08:38:02download

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.