You're sending writer.WriteByte(0x01); for some reason? I'd remove that
As @fanoush says, you're over-escaping the string, for the 0x10 as well as the newline at the end. Something like writer.WriteString("\x10X({my:\"data\"})\n"); would do it
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's at http://www.espruino.com/Reference#l_Serial_data - Bluetooth is an instance of
Serial
I think you have two issues here...
writer.WriteByte(0x01);
for some reason? I'd remove thatwriter.WriteString("\x10X({my:\"data\"})\n");
would do it