-
• #2
Fri 2018.09.14
Hello @user94069 George,
Are you remembering save before disconnect?
http://www.espruino.com/Saving
What does your startup init function look like?http://www.espruino.com/Reference#l_E_init
http://www.espruino.com/Quick+Start+Code
http://www.espruino.com/FAQ
http://www.espruino.com/Quick+Start+USB -
• #3
When you reconnect IDE, what is IDE's console 'saying'? ...spilling lots of messages?
-
• #5
Sun 2018.09.16
Hello @user94069 George,
Sometimes knowing which rock to turn over will speed up the learning process. The key was in this line:
'it doesnt work. But once i open up Espruino IDE and click "Send to Espruino", it works again.'
Just so happens I remembered I had turned over that same rock a while back.
It takes quite a bit of time to learn all the nuances of a new environment and sometimes staring at the same code for hours on end, blocks the insight to get over the finish line. Don't be so hard on yourself.
I'm glad you found success with an easy fix.
Hi there,
i have setup my NodeMCU (ESP8266).
It connects to wifi and then connects to my MQTT broker. For now, i simply having it turning off/on the on board LED when a message is received.
It works fine when i have it connected to my desktop PC and have the Espruino IDE opened up after uploading the code (Send to Espruino), but for some reason when i disconnect the NodeMCU and power it via a battery back, it doesnt create the connection to my MQTT broker.
If i disconnect it from the battery pack and plug it back into my PC then try send a message, again, it doesnt work. But once i open up Espruino IDE and click "Send to Espruino", it works again.
It seems as if the Espruino flashed NodeMCU will only work with the software uploaded via Espruino IDE only if the application is kicked off within the Espruino IDE. Is this correct? Is there no way i can get it to work without having the Espruino IDE open?
Sort of like when you upload code via Arduino Studio and then unplug the Arduino and then use it elsewhere, it just works.
Your feedback is appreciated!
Regards,
George