[Solved]Javascript code not persisting on reboot #5273
Replies: 1 comment
-
Posted at 2016-03-13 by Wilberforce Upload the code in the ide.
You want want to read up on the
If there is code you want to do on start up. Posted at 2016-03-13 by @allObjects Regarding starting of your code on power-up, add to you code (in the IDE editor / right page) either
or
and then upload the code and finally issue a Personally, I prefer the single Furthermore,
To handle configuration, initialization (w/ sequencing/callbacks), and later sequencing / callbacks, I created a gCtl (globalController), with more about the global controller vs. E.on("init",...) and a [Tasker (kind of a Promise] with built-in retry options)[http://forum.espruino.com/conversations/261352/]. Posted at 2016-03-14 by @gfwilliams As the others have said, Best to read through the steps on the Quick Start - I know they don't all apply to ESP8266 (there's no 'LED' constant built in) but it doesn't take long and would answer a lot of questions you might have. Posted at 2016-04-04 by Will Thank you, everyone! Posted at 2016-05-02 by Will BTW, I have since learned, that wifi also has a save, which is smartly independent of the generic save. I recommend to readers to know uses of both: wifi.save() reset() |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-03-12 by Will
Sorry if I missed instruction/step, but it seems that I have to re-upload my code everytime the ESP8266 is rebooted. Am I missing a step to "flash" the code on top of the firmware?
Beta Was this translation helpful? Give feedback.
All reactions