I'm using StreamDevice to receive unsolicited bytestream messages from a device with the message format: 0x10 0x02 ... data ... 0x10 0x03 CRC-bytes.
In my protocol file, I have:
Terminator = DLE ETX;
ExtraInput = Ignore;
getSerial {
out "\x10\x02\x11\x11\x01";
#message tag is \x11
in "\x10\x02\x21\x11%(\$1:serial.VAL)0r";
}
however it is only storing a single byte into the serial record. How do I extract multiple bytes?