Library for ESP32/ESP8266 with OTA, AP configuration page and STA data export

jaolho
Posts: 1
Joined: Fri Nov 03, 2023 12:40 pm

Library for ESP32/ESP8266 with OTA, AP configuration page and STA data export

Postby jaolho » Fri Nov 03, 2023 1:16 pm

Hello everyone,

I was wondering if anyone has written a general (Arduino compatible) library for ESP32/ESP8266 with the following features out-of-the-box:
- OTA
- AP accessible configuration, status and firmware update page (http, single page interface)
- STA (WiFi) data export capability with AP configurable settings (Influxdb, MQTT, Bluetooth advertisement, etc.)

This kind of library would be very useful for all kind of IoT usage. I ran into this need when I tried to write firmware for an electricity meter for my house with Influxdb data export. The ESP (actually ESP8266) meter measures and sends the electricity usage (kWh) every 10 seconds to an Influx database. I got this working but all configuration settings are hard coded which is not optimal.

I would like to be able to configure the AP, WiFi and Influxdb credentials though an AP web page (which is not dependent of the STA WiFi connection), which would also show additional information about connections (online/offline) and have the capability to show/edit additional custom parameters (e.g. data export interval). Also, it would be nice to be able to update the firmware though the same interface without connecting to the ESP with an USB cable since the ESP is not easily accessible physically (closed box).

I asked this question in a limited form from ChatGTP but I haven't tried to implement the code that it produced yet. The conversation is here:
https://chat.openai.com/share/ab3763c2- ... 1cfe87b874

Including other export options (with credentials and settings) in addition to Influxdb to a single interface would have obvious benefits and expanded use cases.

Please let me know if someone has done this already or if someone (with more coding skills than me) is interested of doing this as an open source project.

Cheers,
jaolho

lbernstone
Posts: 826
Joined: Mon Jul 22, 2019 3:20 pm

Re: Library for ESP32/ESP8266 with OTA, AP configuration page and STA data export

Postby lbernstone » Sat Nov 04, 2023 11:05 am

https://github.com/tzapu/WiFiManager does not have OTA, but should be flexible enough to add what you need.

Who is online

Users browsing this forum: Majestic-12 [Bot] and 144 guests