Here’s another lua newbie (which will be obvious )
I am trying to do a simple plugin that is based on the pioneer receiver plugin. Basically I want to send hexadecimal strings.
For example, RecallMemory00 is a static hex string:
["InputSelection1"] = {
["RecallMemory00"] = "0107000003FF0C00000E", -- Recall Memory 00
(i.e. 01 is first byte to be sent as binary 1)
… and I basically want to send it using luup.io.write() in raw binary, i.e. I somehow have to convert the complete (10char) hex string into 5 byte binary, or better, define the string as hex directly.
In C I would probably do it like this;
const char *RecallMemory00 = { ‘\x01’, ‘\x07’, ‘\x00’ … etc etc
Hope my question is clear
Micael