Load program after reset or power-on ESP-8266 12f #5621
Replies: 1 comment
-
|
Posted at 2016-12-19 by user70967 Are you trying something like this ? I don't know how onInit() works. Posted at 2016-12-19 by @MaBecker Hi @jakub.frydrych o setup wifi as station connected your access point (only once) o write code you want to be started on boot='init' and upload o after your code is completely uploaded run save, this will save, restart and run your code Posted at 2016-12-19 by jakub.frydrych Hi, thaks for answear. I test this tip and after restart device ( use func reset() ), device not loaded code from init function. What I do wrong ? Testing code for init func : And console output, after save(); code correctly loaded, but after reset() not load code from init function. If I call load() func after reset, code correctly run. Posted at 2016-12-19 by @MaBecker So it works as designed. A A boot is when pressing reset button or call Posted at 2016-12-20 by jakub.frydrych Many thanks, I did not understand reset() func and take this func as restart device with boot. Now is after reboot or power-on code loaded from memory. Thanks for explanation and your time. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2016-12-19 by jakub.frydrych
Hi,
please help me with loading espruino code from flash after reset() or power-on device esp8266 12f.
My device has espruino ver. 1.89 and I need start http server after reset() or power-on.
I try onInit() func, E.on('init', ... and E.setBootCode function, but without success.
I know that esp8266 not full supported board for espruino, but is chance load code ?
Lot of thanks for answears.
Jakub
Beta Was this translation helpful? Give feedback.
All reactions