Skip to content

Procedure to connect to WiFi access point through web interface when no saved access point is available #5

@mhurk

Description

@mhurk

Currently you need to hardcode your SSID and password in the code

For example via:
For Arduino-ESP32, WiFiManager is effectively the standard. (apparently)

Features

  • SoftAP provisioning
  • Captive portal (DNS redirect)
  • SSID scan + dropdown
  • Automatic reconnect
  • Reset on button press
#include <WiFiManager.h>

WiFiManager wm;

void setup() {
  bool res;
  res = wm.autoConnect("MyDevice-Setup");

  if (!res) {
    ESP.restart();
  }
}

This

  • Creates AP MyDevice-Setup
  • Serves portal at 192.168.4.1
  • Saves credentials in flash
  • Automatically connects on next boot

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions