fix: 透传-modbus组件-下行透传格式
parent
0d1da6d928
commit
933104863c
|
@ -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()
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue