You are reading a single comment by @MaBe and its replies. Click here to read the full conversation.
  • Ok, so if print() work, then JSON.parse() should work too, but it causes an error.

    ...
        //uart.write(`\x03\x10print(${_cmd})\n`)­;
        uart.write(`\x03\x10JSON.parse(${_cmd})\­n`);
    ...
    
    

    Reports:

    Got:"Uncaught SyntaxError"
    Got:": Expecting a valid "
    Got:"value, got ID\r\n at l"
    Got:"ine 1 col 1\r\n[object"
    Got:" Object]\r\n^\r\n>"
    
About

Avatar for MaBe @MaBe started