Literally just change the python command variable to:
command = "\x03\x10yourFunctionName();\n"
Apart from the first 2 chars you're just sending JS, so if you want to send arguments it's as easy as "\x03\x10yourFunctionName(1,2,3,'foobar');\n"
© Espruino, powered by microcosm.
Report a problem