mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-22 10:42:10 +10:00
updated file names for better consistency
updated read me to reflect changes
This commit is contained in:
@@ -14,17 +14,19 @@ This works with the ESP8266 Arduino platform https://github.com/esp8266/Arduino
|
|||||||
#include <WiFiClient.h>
|
#include <WiFiClient.h>
|
||||||
#include <EEPROM.h>
|
#include <EEPROM.h>
|
||||||
#include <ESP8266mDNS.h>
|
#include <ESP8266mDNS.h>
|
||||||
#include <WifiManager.h>
|
#include <WiFiManager.h>
|
||||||
```
|
```
|
||||||
|
|
||||||
- Initialise library, the paramater is the Acces Point Name
|
- Initialise library, the paramater is the Acces Point Name
|
||||||
```
|
```
|
||||||
WiFiManager wifi("ESP-AP");
|
//parameter is eeprom start
|
||||||
|
WiFiManager wifi(0);
|
||||||
```
|
```
|
||||||
|
|
||||||
- In your setup function add
|
- In your setup function add
|
||||||
```
|
```
|
||||||
wifi.autoConnect();
|
//parameter is name of access point
|
||||||
|
wifi.autoConnect("AP-NAME");
|
||||||
```
|
```
|
||||||
|
|
||||||
After you write your sketch and start the ESP, it will try to connect to WiFi. If it fails it starts in Access Point mode.
|
After you write your sketch and start the ESP, it will try to connect to WiFi. If it fails it starts in Access Point mode.
|
||||||
|
|||||||
@@ -14,12 +14,6 @@
|
|||||||
MDNSResponder mdns;
|
MDNSResponder mdns;
|
||||||
WiFiServer server(80);
|
WiFiServer server(80);
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
#define DEBUG_PRINT(x) Serial.println(x)
|
|
||||||
#else
|
|
||||||
#define DEBUG_PRINT(x)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
WiFiManager::WiFiManager(int eepromStart)
|
WiFiManager::WiFiManager(int eepromStart)
|
||||||
{
|
{
|
||||||
@@ -68,6 +68,13 @@ private:
|
|||||||
String getEEPROMString(int start, int len);
|
String getEEPROMString(int start, int len);
|
||||||
void setEEPROMString(int start, int len, String string);
|
void setEEPROMString(int start, int len, String string);
|
||||||
int serverLoop();
|
int serverLoop();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
Reference in New Issue
Block a user