jsvAsString really isn't doing what you expect.
jsvAsString
As I said above, you need JSV_GET_AS_CHAR_ARRAY - take a look at where it's used in other places in the code - it's pretty straightforward
JSV_GET_AS_CHAR_ARRAY
@Gordon 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.
jsvAsString
really isn't doing what you expect.As I said above, you need
JSV_GET_AS_CHAR_ARRAY
- take a look at where it's used in other places in the code - it's pretty straightforward