This library simplies adding the improv serial protocol to your ESP32 projects. When used with esp web tools it fullfills three purposes:
- Returns the manifest data when asked
- Sets up the wifi connection
- Returns the application url
The design is completely non-blocking, even when 'waiting' for a wifi connection, and can be used with any WiFi stack, including WiFi managers.
For those that don't know, esp web tools allows an ESP32 device to be flashed using a web browser that supports serial port access (basically Chrome, Edge and Opera). Improv allows esp web tools to query what firmware is already flashed and to set up a WiFi connection on the device.
- Declare an instance of the class, constructed with the manifest information
- Define a callback to connect to WiFi
- Optionally define a callback to display info messages
- Optionally define a callback to display debug messages
- Call the loop() method every so often. This method never blocks.
Obviously writing messages to the serial port will interefere with the improv messaging, but there are sometimes other ways to get that information in front of a person.