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

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