That's a strange one - are you using up to date firmware (1v94?) I just tried uploading your code exactly as it was and it appears to work fine for me?
*Could it be that you have onInit() at the end of your code and you have turned save on send on in the IDE options?* That causes the error you report for me.
If so, what you're doing is calling onInit twice, in quick succession - and that's what is tripping it up.
What you're suggesting to do with the rest of your project sounds great! I'd love to hear how you get on.
Only thing I'd say is be careful when powering Espruino WiFi from your car. Personally I'd use a car USB charger and power it using Micro USB. Espruino WiFi doesn't have same USB power circuitry other boards do, so you need to be really careful when powering it from an external voltage if you're also going to plug it into your computer via USB. Powering it from Micro USB is a really nice easy way to get around that :)
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.
That's a strange one - are you using up to date firmware (1v94?) I just tried uploading your code exactly as it was and it appears to work fine for me?
*Could it be that you have
onInit()
at the end of your code and you have turnedsave on send
on in the IDE options?* That causes the error you report for me.If so, what you're doing is calling
onInit
twice, in quick succession - and that's what is tripping it up.What you're suggesting to do with the rest of your project sounds great! I'd love to hear how you get on.
Only thing I'd say is be careful when powering Espruino WiFi from your car. Personally I'd use a car USB charger and power it using Micro USB. Espruino WiFi doesn't have same USB power circuitry other boards do, so you need to be really careful when powering it from an external voltage if you're also going to plug it into your computer via USB. Powering it from Micro USB is a really nice easy way to get around that :)