things/protocol/script
thingsProtocolScript

新增协议脚本

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

Request body

tenantCodestring

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

idstring
namestring
descstring
triggerDirinteger

1:up 2:down

triggerTimerinteger

收到前处理1:before 2:after

triggerHandlestring

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

triggerTypestring

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

scriptstring

脚本内容

statusinteger

状态:是否启用

createdTimeinteger

创建时间

Response

A successful response.

codeinteger
msgstring

Changes