v1

latestOpenAPI 3.0.32026-07-17178286472.4 KB
things/device/edge
thingsDeviceEdge

设备使用http协议用云端交互,需要在http头中带上mqtt的账号密码(basic auth)

post/api/v1/things/device/edge/send/{handle}/{type}

Path parameters

handlestring required

对应 mqtt topic的第一个 thing ota config 等等

typestring required

操作类型 从topic中提取 物模型下就是 property属性 event事件 action行为

Headers

productIDstring

如果网关类型要操作子设备的topic,需要指定子设备的产品ID和设备ID,如果没有填写则默认是账号里的设备

deviceNamestring

如果网关类型要操作子设备的topic,需要指定子设备的产品ID和设备ID,如果没有填写则默认是账号里的设备

authorizationstring required

basic auth 账号密码使用mqtt格式生成的账号密码

Request body

DeviceInteractEdgeSendReq required

Response

A successful response.

codeinteger
dataDeviceInteractEdgeSendResp
msgstring