updated file names for better consistency

updated read me to reflect changes
This commit is contained in:
Alex Tudorache
2015-06-18 08:34:30 +03:00
parent b485ef3a8f
commit bfdd53c984
3 changed files with 12 additions and 9 deletions
+5 -3
View File
@@ -14,17 +14,19 @@ This works with the ESP8266 Arduino platform https://github.com/esp8266/Arduino
#include <WiFiClient.h>
#include <EEPROM.h>
#include <ESP8266mDNS.h>
#include <WifiManager.h>
#include <WiFiManager.h>
```
- 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
```
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.
-6
View File
@@ -14,12 +14,6 @@
MDNSResponder mdns;
WiFiServer server(80);
#ifdef DEBUG
#define DEBUG_PRINT(x) Serial.println(x)
#else
#define DEBUG_PRINT(x)
#endif
WiFiManager::WiFiManager(int eepromStart)
{
+7
View File
@@ -68,6 +68,13 @@ private:
String getEEPROMString(int start, int len);
void setEEPROMString(int start, int len, String string);
int serverLoop();
};
#endif