https://docs.python.org/3/library/functions.html#func-bytearray says 'If it is a string, you must also give the encoding'. For a start you can use 'ascii' as encoding.
Or you can add encode call to c=command line to convert string to bytes.
c=command
@fanoush 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.
https://docs.python.org/3/library/functions.html#func-bytearray says
'If it is a string, you must also give the encoding'. For a start you can use 'ascii' as encoding.
Or you can add encode call to
c=command
line to convert string to bytes.