Hi fanoush, Thanks. I presumed you meant I should add your suggestion to my code app. I did that and still no result yet. Code on watch
E.showMessage("Hello Code"); function Y(dict) { E.showMessage(dict.Code); }
Console
Connecting... Connected Writing command RX> bytearray(b"Y(\'+json.dumps(dict)") RX> bytearray(b"Y(\'+json.dumps(dict)") RX> bytearray(b"+\')\r\n") RX> bytearray(b"+\')\r\n") Waiting for data RX> bytearray(b'Uncaught Error: Cann') RX> bytearray(b'Uncaught Error: Cann') RX> bytearray(b"ot read property \'sp") RX> bytearray(b"ot read property \'sp") RX> bytearray(b"lit\' of undefined\r\n ") RX> bytearray(b"lit\' of undefined\r\n ") RX> bytearray(b'at line 1 col 249\r\n.') RX> bytearray(b'at line 1 col 249\r\n.') RX> bytearray(b'..Rect(c/2-b,44,c/2+') RX> bytearray(b'..Rect(c/2-b,44,c/2+') RX> bytearray(b'b,45)}b=e.split("\\n"') RX> bytearray(b'b,45)}b=e.split("\\n"') RX> bytearray(b');var h=(f-16*b.leng') RX> bytearray(b');var h=(f-16*b.leng') RX> bytearray(b'th...\r\n ') RX> bytearray(b'th...\r\n ') RX> bytearray(b' ^\r\n') RX> bytearray(b' ^\r\n') RX> bytearray(b'in function called f') RX> bytearray(b'in function called f') RX> bytearray(b'rom line 1 col 24\r\nE') RX> bytearray(b'rom line 1 col 24\r\nE') RX> bytearray(b'.showMessage(dict.Co') RX> bytearray(b'.showMessage(dict.Co') RX> bytearray(b'de);\r\n ') RX> bytearray(b'de);\r\n ') RX> bytearray(b' ^\r\nat line ') RX> bytearray(b' ^\r\nat line ') RX> bytearray(b'1 col 24\r\nE.showMess') RX> bytearray(b'1 col 24\r\nE.showMess') RX> bytearray(b'age(dict.Code);\r\n ') RX> bytearray(b'age(dict.Code);\r\n ') RX> bytearray(b' ') RX> bytearray(b' ') RX> bytearray(b'^\r\nin function "Y" c') RX> bytearray(b'^\r\nin function "Y" c') RX> bytearray(b'alled from line 1 co') RX> bytearray(b'alled from line 1 co') RX> bytearray(b"l 23\r\nY(\'+json.dumps") RX> bytearray(b"l 23\r\nY(\'+json.dumps") RX> bytearray(b"(dict)+\')\r\n ") RX> bytearray(b"(dict)+\')\r\n ") RX> bytearray(b' ^\r\n>') RX> bytearray(b' ^\r\n>') Done!
@user118216 started
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.
Hi fanoush,
Thanks.
I presumed you meant I should add your suggestion to my code app.
I did that and still no result yet.
Code on watch
Console