things/protocol/script
thingsProtocolScript

协议脚本调试

Changed on
post/api/v1/things/protocol/script/debug

Request

  • The document declares no server URL.
  • Auth
    none declared

Request body

scriptstring required

脚本内容

triggerDirinteger required

1:up 2:down

triggerTimerinteger required

收到前处理1:before 2:after

Response

A successful response.

codeinteger
msgstring

Changes

    • breaking

      added required request body

    • info

      added the media type application/json for the response with the status

    • breaking

      removed the request body

    • breaking

      removed the media type application/json for the response with the status