19.09.2016, 12:44
By default hextostr discards zero bytes, you have to pass a second argument for it to keep zeros. Next two lines result in the same binary string:
Your script should probably read:
Code:
c1 = string.char(0xBF,0xF4,0xFA,0xB8,0x43,0xFA,0x00,0x00,0x00,0x04,0xA2)
c2 = lmcore.hextostr('BFF4FAB843FA00000004A2', true)
Your script should probably read:
Code:
result = lmcore.strtohex(data)
log(result)