v1

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

新增协议脚本

post/api/v1/things/protocol/script/create

Request body

createdTimeinteger

创建时间

descstring
idstring
namestring
scriptstring

脚本内容

statusinteger

状态:是否启用

tenantCodestring

租户号,common 为公共的产品,公共的大家都可以看,但是只有default可以修改

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