Note that you're using two different types of quotes - so you're actually just sending the string X('+json.dumps(dict)+')/n which is exactly what Espruino is seeing.
If you did:
command = "X("+json.dumps(dict)+")/n"
Then you may have more success - that should actually send the data in dict rather than just the text json.dumps(dict).
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.
I think what you've got is this line:
Note that you're using two different types of quotes - so you're actually just sending the string
X('+json.dumps(dict)+')/n
which is exactly what Espruino is seeing.If you did:
Then you may have more success - that should actually send the data in
dict
rather than just the textjson.dumps(dict)
.