Control Device

Last Updated on : 2023-12-07 03:33:48download

Issue standard instructions to control equipment

API address

POST: /v1.0/devices/{device_id}/commands

Request parameter

Parameter nameTypeINRequiredDescription
device_idStringuritruedevice id

Description of body

Parameter nameTypeINRequiredDescription
commandsString trueissue commands

Return parameter

Parameter nameTypeDescription
resultBoolean

Request example

POST: /v1.0/devices/vdevo*****/commands
{
  "commands": [
    {
      "code": "switch_led",
      "value": true
    },
    {
      "code": "bright",
      "value": 30
    }
  ]
}

Return example

true

Error code

For more information, see error code.