Hello.
Not able to manage the correct setting for the buffer parser.
Reading following addresses from my device:
Message from the debug node when I am reading the device.
{"topic":"c32e7007f4323d53","messageId":"63cbe33d636baba37fb145a2","payload":[11031,16858,62415,16870,26372,16900],"unitId":1,"modbusRequest":{"value":true,"unitid":"1","fc":3,"address":"689","quantity":"6","messageId":"63cbe33d636baba37fb145a2"},"responseBuffer":{"data":[11031,16858,62415,16870,26372,16900],"buffer":[23,43,218,65,207,243,230,65,4,103,4,66]},"_msgid":"b322c62d7cafd758"}
Created a flow to test - Was not able to config the buffer parser to deliver all 3 values correct within 1 setup. If I spilt the message i get the correct value..
Attached the flow:
[{"id":"c454cc2a06e55e7e","type":"tab","label":"Flow 5","disabled":false,"info":"","env":[]},{"id":"3f925c4448f287ab","type":"buffer-parser","z":"c454cc2a06e55e7e","name":"Temp1_Temp2_Temp3","data":"payload","dataType":"msg","specification":"spec","specificationType":"ui","items":[{"type":"floatle","name":"temp1","offset":0,"length":1,"offsetbit":0,"scale":"1","mask":""},{"type":"floatle","name":"temp2","offset":2,"length":1,"offsetbit":0,"scale":"1","mask":""},{"type":"floatle","name":"temp3","offset":4,"length":1,"offsetbit":0,"scale":"1","mask":""}],"swap1":"swap16","swap2":"swap16","swap3":"swap16","swap1Type":"swap","swap2Type":"swap","swap3Type":"swap","msgProperty":"payload","msgPropertyType":"str","resultType":"keyvalue","resultTypeType":"return","multipleResult":false,"fanOutMultipleResult":false,"setTopic":true,"outputs":1,"x":640,"y":680,"wires":[["22a63dc08a6db91c"]]},{"id":"23fe42f9727ff16c","type":"inject","z":"c454cc2a06e55e7e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[11031,16858,62415,16870,26372,16900]","payloadType":"json","x":390,"y":680,"wires":[["3f925c4448f287ab"]]},{"id":"22a63dc08a6db91c","type":"debug","z":"c454cc2a06e55e7e","name":"Temp1_Temp2_Temp3","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":900,"y":680,"wires":[]},{"id":"56552dc460ddbf00","type":"debug","z":"c454cc2a06e55e7e","name":"[11031,16858,62415,16870,26372,16900]","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":540,"y":580,"wires":[]},{"id":"223e54b784a9b06f","type":"debug","z":"c454cc2a06e55e7e","name":"Temp1 ","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":910,"y":800,"wires":[]},{"id":"5743f6cbc3df61bc","type":"buffer-parser","z":"c454cc2a06e55e7e","name":"Temp1 - float (le) - Swap16","data":"payload","dataType":"msg","specification":"spec","specificationType":"ui","items":[{"type":"floatle","name":"temp1","offset":0,"length":1,"offsetbit":0,"scale":"1","mask":""}],"swap1":"swap16","swap2":"","swap3":"","swap1Type":"swap","swap2Type":"swap","swap3Type":"swap","msgProperty":"payload","msgPropertyType":"str","resultType":"keyvalue","resultTypeType":"return","multipleResult":false,"fanOutMultipleResult":false,"setTopic":true,"outputs":1,"x":660,"y":800,"wires":[["223e54b784a9b06f"]]},{"id":"a5b6f16888d9d6fd","type":"inject","z":"c454cc2a06e55e7e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[11031,16858]","payloadType":"json","x":390,"y":800,"wires":[["5743f6cbc3df61bc"]]},{"id":"9a10c4d75789f70a","type":"debug","z":"c454cc2a06e55e7e","name":"Temp2","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":910,"y":880,"wires":[]},{"id":"f90b8b875ab40aef","type":"buffer-parser","z":"c454cc2a06e55e7e","name":"Temp2 - float (le) - Swap16","data":"payload","dataType":"msg","specification":"spec","specificationType":"ui","items":[{"type":"floatle","name":"temp2","offset":0,"length":1,"offsetbit":0,"scale":"1","mask":""}],"swap1":"swap16","swap2":"","swap3":"","swap1Type":"swap","swap2Type":"swap","swap3Type":"swap","msgProperty":"payload","msgPropertyType":"str","resultType":"keyvalue","resultTypeType":"return","multipleResult":false,"fanOutMultipleResult":false,"setTopic":true,"outputs":1,"x":660,"y":880,"wires":[["9a10c4d75789f70a"]]},{"id":"2fda119bdbce8cde","type":"inject","z":"c454cc2a06e55e7e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[62415,16870]","payloadType":"json","x":390,"y":880,"wires":[["f90b8b875ab40aef"]]},{"id":"c045bd7746b75a1b","type":"debug","z":"c454cc2a06e55e7e","name":"Temp3","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":910,"y":960,"wires":[]},{"id":"cec69d1d31657830","type":"buffer-parser","z":"c454cc2a06e55e7e","name":"Temp3 - float (le) - Swap16","data":"payload","dataType":"msg","specification":"spec","specificationType":"ui","items":[{"type":"floatle","name":"temp3","offset":0,"length":1,"offsetbit":0,"scale":"1","mask":""}],"swap1":"swap16","swap2":"","swap3":"","swap1Type":"swap","swap2Type":"swap","swap3Type":"swap","msgProperty":"payload","msgPropertyType":"str","resultType":"keyvalue","resultTypeType":"return","multipleResult":false,"fanOutMultipleResult":false,"setTopic":true,"outputs":1,"x":660,"y":960,"wires":[["c045bd7746b75a1b"]]},{"id":"27a22480b8fe67d5","type":"inject","z":"c454cc2a06e55e7e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[26372,16900]","payloadType":"json","x":390,"y":960,"wires":[["cec69d1d31657830"]]}]
I added the same config as I am reading the single vales - ... must be something with the offset or Swap? What I am doing wrong ?
Thx for some support.
BR