esphome / esp-web-tools

Open source tools to allow working with ESP devices in the browser
https://esphome.github.io/esp-web-tools/
Apache License 2.0
422 stars 117 forks source link

Start Improv after succesfull installation #487

Open DustinWatts opened 6 months ago

DustinWatts commented 6 months ago

Hi people who take the time to read this 😄 !

I am a bit stuck/confused. Can any one tell me how do I start Improv after the installation is complete. And what needs to be in my code and what need to be on my website (where I host the web-tools for uploading the binaries.

Your answer or pointing me in the right direction is very much improved!

balloob commented 6 months ago

You need to implement Improv in your firmware. If your firmware is slow on first boot, you can tweak the config. From the README:

When a firmware is first installed on a device, it might need to do some time consuming tasks like initializing the file system. By default ESP Web Tools will wait 10 seconds to receive an Improv Serial response to indicate that the boot is completed. You can increase this timeout by setting the optional manifest key new_install_improv_wait_time to the number of seconds to wait. Set to 0 to disable Improv Serial detection.

ldijkman commented 4 months ago

if you use arduino ide in the library manager there is a library with improv example code https://www.arduino.cc/reference/en/libraries/improv-wifi-library/

https://github.com/jnthas/Improv-WiFi-Library

esp32 demo https://jnthas.github.io/improv-wifi-demo/

but i have some problems with the ESP32 version https://ldijkman.github.io/async-esp-fs-webserver/