Skip to content
This repository has been archived by the owner on Aug 23, 2024. It is now read-only.

sangsangfarm/Arduino-WiFiSettingServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino-WiFi-Setting-Server

WiFi setting server in Arduino.

Support platform

  • esp8226
  • esp32

Usage

char *ap_name = "my wifi setting server";
WiFiSettingServer server = WiFiSettingServer(ap_name);
void setup() {
  int eeprom_address = 1000;
  server.setEEPROMAddress(1000); //for loading wifi info
  server.begin();

  while(WiFi.status() != WL_CONNECTED)
    server.connectWiFi();
}
void loop() {
  //If wifi is disconnected, wifi setting server begin.
  if (WiFi.status() != WL_CONNECTED)
  {
    if (!server.isActive())
      server.begin();
    server.connectWiFi();
  }
}