Using uploaded software offline #6048
Replies: 1 comment
-
Posted at 2018-09-15 by Robin Fri 2018.09.14 Hello @user94069 George, Are you remembering save before disconnect? http://www.espruino.com/Saving http://www.espruino.com/Reference#l_E_init [http://www.espruino.com/Quick+Start+Code](http://www.espruino.com/Quick+Start+Code) [http://www.espruino.com/FAQ](http://www.espruino.com/FAQ) [http://www.espruino.com/Quick+Start+USB](http://www.espruino.com/Quick+Start+USB) Posted at 2018-09-15 by @allObjects When you reconnect IDE, what is IDE's console 'saying'? ...spilling lots of messages? Posted at 2018-09-16 by user94069 Hi @robin, Thanks for the response. I feel like abit of a tool. I never knew i had to type the "Save()" command once i upload something to my NodeMCU. It works now, after the "Save()" command. Thanks so much! Posted at 2018-09-16 by Robin 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:
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. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-09-15 by user94069
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
Beta Was this translation helpful? Give feedback.
All reactions