Adding a snippet helps re-programming a ESP with init.lua calling deep sleep without flashing the whole firmware again.. |
This way it's not not necessary to re-flash the whole firmware, but just upload your new version and test on.
Click on the "Snippets" tab, choose the snippet you want to add on the left side, and add these two lines:
file.remove('init.old')
file.rename('init.lua','init.old')
You can also rename the button with a text that suits the task.
Keine Kommentare:
Kommentar veröffentlichen