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 is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
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.