things/device/interact
thingsDeviceInteract

批量调用设备属性

post/api/v1/things/device/interact/property-control-multi-send

Request body

areaIDstring

项目区域id,传了优先从项目区域中获取设备列表

areaIDPathstring

根据区域路径控制设备

datastring required

属性数据, JSON格式字符串, 注意字段需要在物模型属性里定义

deviceNamesstring[]

设备名列表

groupIDstring

分组ID,传了会从分组下获取设备

isAsyncboolean

是否异步操作 异步情况通过获取接口来获取

productIDstring

产品id

shadowControlinteger

设备影子控制 0:自动,当设备不在线的时候设置设备影子,设备在线时直接下发给设备 1:只实时下发,不在线报错 2:如果有设备影子只修改影子,没有的也不下发

syncTimeoutinteger

同步超时时间(单位:秒,不填默认3秒)

Response

A successful response.

codeinteger
msgstring

Changes

Changed in 2 of the 50 revisions of this API.31

  • b9582d0ab6af11See the full diff
    • added required request body

      request-body-added-required

    • added the media type application/json for the response with the status 200

      response-media-type-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • removed the request body

      request-body-removed

    • removed the media type application/json for the response with the status 200

      response-media-type-removed

    This revision also has 287 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog