v1

latestOpenAPI 3.0.32026-07-17178286472.4 KB
things/protocol/script
thingsProtocolScript

获取协议脚本列表

post/api/v1/things/protocol/script/index

Request body

namestring
statusinteger

状态:是否启用

triggerDirinteger

1:up 2:down

triggerHandlestring

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

triggerTimerinteger

收到前处理1:before 2:after

triggerTypestring

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

Response

A successful response.

codeinteger
msgstring