SmingHub / Sming

Sming - powerful open source framework simplifying the creation of embedded C++ applications.
https://sming.readthedocs.io
GNU Lesser General Public License v3.0
1.48k stars 347 forks source link

Configuring WiFi credentials via captive portal #2546

Open MayaPosch opened 2 years ago

MayaPosch commented 2 years ago

For Arduino ESP8266 & ESP32 there is the WiFiManager project: https://github.com/tzapu/WiFiManager

This project allows for easy configuration of an ESP device by connecting to its AP and setting the WiFi credentials via a browser-based interface. This is more portable than the 'Smart Config' option. Unfortunately WiFiManager does not seem to support Sming (due to its use of Arduino-exclusive headers like ESP8266WiFi.h).

I could not find an existing solution for Sming that offers similar functionality. The DNS Captive Portal sample seems to provide some of the basics, minus the credentials section.

My question is whether I overlooked an existing solution here?

avr39-ripe commented 2 years ago

May be not completely what yo expect, but it can be a starting point https://github.com/SmingHub/Sming/tree/develop/samples/Basic_WebSkeletonApp I use kind of it for initial wifi configuration. Bit ugly and outdated web ui but better than nothing :)