Переглянути джерело

fix: 透传-modbus组件-下行透传格式

jay 1 рік тому
батько
коміт
933104863c

+ 1 - 5
data/converters/50b0fdd0-9bc8-448d-a7cf-d3b1b4df944c/converter.js

@@ -300,11 +300,7 @@ this.encode = function (service, device) {
         mid: deviceMid,
         content: {
             topic: topic,
-            payload: JSON.stringify({
-                id: deviceMid,
-                method: method += "property." + identifier,
-                params: ab2hex(payloadArray).toUpperCase()
-            })
+            payload: ab2hex(payloadArray).toUpperCase()
         }
     }
 };

+ 1 - 5
iot-components/iot-nb-component/src/main/resources/convert.js

@@ -300,11 +300,7 @@ this.encode = function (service, device) {
         mid: deviceMid,
         content: {
             topic: topic,
-            payload: JSON.stringify({
-                id: deviceMid,
-                method: method += "property." + identifier,
-                params: ab2hex(payloadArray).toUpperCase()
-            })
+            payload: ab2hex(payloadArray).toUpperCase()
         }
     }
 };