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

V0.5.x
jay 2023-07-25 14:52:24 +08:00
parent 0d1da6d928
commit 933104863c
2 changed files with 2 additions and 10 deletions

View File

@ -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()
}
}
};

View File

@ -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()
}
}
};