Hi Guys,
I have managed to connect to a laser sensor and get data back from the unit into python however i think i need to decode this data. Below is what i have sent and get back.
Console Result:-
UDP target IP: 192.168.60.3
UDP target port: 9008
message: FF FF FF FF 00 00 32 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Received Message:-
b'\x00\x00\x00\x00\x00\x00NA\x00\x00\x00\x00\x00\x00FF\x10\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00' ('192.168.60.3', 9008)
How can i decode this I tried adding the code below mut just got garbage out
print(data.decode("utf_8"))
My result should be the same as the message sent but with a couple of value changes which tells me the action was carried out.
Thanks for the help
Regards
Deepthought