diff --git a/docs/publish_command.md b/docs/publish_command.md index cf0c259..c46f7da 100644 --- a/docs/publish_command.md +++ b/docs/publish_command.md @@ -5,7 +5,7 @@ ## 2. 下发的数据格式如下 <>, 其中 - "t": 1|2|3|4, + "t": 1|2|3|4|5, Body: ```json @@ -28,6 +28,7 @@ * 2代表采集向下发,比如,设置某个设备短上的modbus微服务采集某个地址的数据 * 3代表下发微服务文件。 * 4代表下发场景,这个指令用于设置设备端上各个微服务之间的逐句流转。 + * 5代表删除场景 ### 3.1 参数下发的结构 对于参数下发,下发内容中的m为一个`map[string]interface{}`结构,用于向某个微服务发送参数,具体参数内容由微服务的参数配置提供。 @@ -81,4 +82,14 @@ "to": 入节点的id, }] } - ``` \ No newline at end of file + ``` + +### 3.5 删除场景 + 在场景删除中,`to`字段会被忽略,可以填写空字符串,而m字段为json化之后的数据,json化之前结构如下: + + ```json + { + "scene_id": "scene_id" + } + ``` + ```ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss \ No newline at end of file