Hello,
can someone please help me decode the following byte arrays:
[255,5,2,4,1,1,255,63,102,102,178,65,205,204,92,66,0,0,0,0,0,0,0,0]
[255,3,2,4,1,1,5,68,72,84,95,50,0,48,255,63,16,0,0,0,112,63,255,63,0,0,0,0,16,48,255,63,16,84,101,109,112,0,255,63,0,0,0,0,61,5,16,64,156,106,255,63,2,0,0,0,128,63,255,72,117,109,0,64,204,106,255,63,13,0,0,0,128,63,255,63,68,23,255,63,16,0,0,0,152,0,255,63,152,63,255,63,244,166,35,64,76,78,39,64,2,0,0,0,152,63,255,63,67,167,35,0,16,48,255,63,33,4,0,0,33,4,0,0,12,2,16,64,2,0,0,0,4,0,0,0,140]
These are EasyGlobalSync UDP outputs of ESP Easy units.
I believe the decode protocol is within this link https://github.com/letscontrolit/ESPEas ... orking.ino , however I do not quite understand C . I understand the infoStruct and dataStruct, but how can one convert bytes to float value ?
Thanks
KR, Peter
EasyGlobalSync UDP message decode
Moderators: grovkillen, Stuntteam, TD-er
Re: EasyGlobalSync UDP message decode
Nevermind, figured it out.
bytes are in reverse, f.i.:
data = [66,110,102,102]
b = ''.join(chr(i) for i in data)
struct.unpack('>f', b) == 59.5999
bytes are in reverse, f.i.:
data = [66,110,102,102]
b = ''.join(chr(i) for i in data)
struct.unpack('>f', b) == 59.5999
Who is online
Users browsing this forum: Google [Bot] and 99 guests