Hi,
I am currently translate some code which I've created in NodeJS for controlling Somfy blinds into Lua to use it by LM. Could you help me with translate some functions?
And also how can I convert hex string to hex?
I am currently translate some code which I've created in NodeJS for controlling Somfy blinds into Lua to use it by LM. Could you help me with translate some functions?
Code:
parseInt(hexValue[i], 16)
toString(16) // e.g. decimalChecksum.toString(16)
And also how can I convert hex string to hex?
Code:
'7FF2FAB843FA000000FFFE065D' => string.char(0x7F,0xF2,0xFA,0xB8,0x43,0xFA,0x00,0x00,0x00,0xFF,0xFE,0x06,0x5D)
Done is better than perfect