Looks really cool - are you putting the AzzyRF boards on Tindie at all? I didn't see them when I looked just now.
I just had a quick peek at the code - I like the idea of waiting for a prompt before sending datastring, it makes it nice and tidy.
Only thing I'd say is it looks like the Serial.on('data' handler is expecting single characters. It'd work fine normally, but if the Espruino gets busy it starts calling the data handler with multiple characters, so you might find you get "SOMEDATA\n", which would trip it up?
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.
Looks really cool - are you putting the AzzyRF boards on Tindie at all? I didn't see them when I looked just now.
I just had a quick peek at the code - I like the idea of waiting for a prompt before sending
datastring
, it makes it nice and tidy.Only thing I'd say is it looks like the
Serial.on('data'
handler is expecting single characters. It'd work fine normally, but if the Espruino gets busy it starts calling the data handler with multiple characters, so you might find you get"SOMEDATA\n"
, which would trip it up?