Remote control of device is the most basic needs for the third-party application, so AIOT cloud provide the API for controlling device. Developers can control just by setting new value to the resource.

Key Value
API /open/res/control
description control device
header {" Appid ": "xxx", " Appkey ": "xxx", "Openid": "xxx", " Access-Token ": "xxx" }
payload {"openId": "xxx", " did ": "xxx", " data ": {"attr": "xxx", "attr": "xxx"}}
response {"code": 0 (errorcode), "result": "msg"}

Parameter description as follows:

  • openId: identifies the user id (obtained through account docking)
  • attr: the resources to control the device
  • Appid: third party application id
  • Appkey: third-party application appKey
  • Access-Token: third-party user authorization token (obtained through account docking)
  • errorcode: error code (see attachment)

results matching ""

    No results matching ""