It looks to me like COMM_GET_VALUES is a constant defined somewhere that's just a single byte, rather than the string "COMM_GET_VALUES".
Also it seems you need to add a 16 bit CRC - so you'll need to find where the crc16 function is defined and copy that.
OR you could try and compile/run the code on your PC and just print out the data that it's trying to send, and then copy that data as-is to Espruino and send that.
© Espruino, powered by microcosm.
Report a problem