Almost! hex string to decimal value help needed

Will try, but I found the solution after many, many hours of trying and searching.

a reply from @Andrei in this post got me thinking. I needed to rightly divide and then swap the bytes to get the right values.

This is a working flow:

[{"id":"4fd79fd65858d998","type":"debug","z":"588a292e181fe8c9","name":"debug 5","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":680,"y":560,"wires":[]},{"id":"11489a0252196e01","type":"binary","z":"588a292e181fe8c9","name":"","property":"payload","pattern":"l16 => packet_id, l16 => tx_relay, l32 => packet_1, l32 => packet_2, l32 => packet_3, l32 => packet_4","x":470,"y":560,"wires":[["4fd79fd65858d998"]]},{"id":"afd3a9e3d033d5b5","type":"inject","z":"588a292e181fe8c9","name":"Test UDP packet","props":[{"p":"payload"}],"repeat":"","crontab":"","once":true,"onceDelay":0.1,"topic":"","payload":"[130,0,163,0,214,0,0,0,214,1,0,0,76,0,0,0,176,3,0,0]","payloadType":"bin","x":250,"y":560,"wires":[["11489a0252196e01","03610996fc811d7a"]]},{"id":"03610996fc811d7a","type":"debug","z":"588a292e181fe8c9","name":"debug 6","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":300,"y":640,"wires":[]}]
1 Like