|
|
@ -1,17 +1,19 @@ |
|
|
|
/**
|
|
|
|
/*
|
|
|
|
* AutoConnect for ESP8266. |
|
|
|
Credential.ino, AutoConnect for ESP8266. |
|
|
|
* https://github.com/Hieromon/AutoConnect
|
|
|
|
https://github.com/Hieromon/AutoConnect
|
|
|
|
* Copyright 2018, Hieromon Ikasamo. |
|
|
|
Copyright 2018, Hieromon Ikasamo. |
|
|
|
* Licensed under The MIT License. |
|
|
|
Licensed under The MIT License. |
|
|
|
* https://opensource.org/licenses/mit-license.php
|
|
|
|
https://opensource.org/licenses/MIT
|
|
|
|
* An example sketch for an Arduino library for ESP8266 WLAN configuration |
|
|
|
|
|
|
|
* via the Web interface. This sketch provides a conservation measures |
|
|
|
An example sketch for an Arduino library for ESP8266 WLAN configuration |
|
|
|
* utility for saved credentials in EEPROM. |
|
|
|
via the Web interface. This sketch provides a conservation measures |
|
|
|
* By accessing the root path, you can see the list of currently saved |
|
|
|
utility for saved credentials in EEPROM. |
|
|
|
* credentials via the browser. Enter an entry number of the credential, |
|
|
|
By accessing the root path, you can see the list of currently saved |
|
|
|
* that entry will be deleted from EEPROM. |
|
|
|
credentials via the browser. Enter an entry number of the credential, |
|
|
|
* This sketch uses PageBuilder to support handling of operation pages. |
|
|
|
that entry will be deleted from EEPROM. |
|
|
|
|
|
|
|
This sketch uses PageBuilder to support handling of operation pages. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
#include <ESP8266WiFi.h> |
|
|
|
#include <ESP8266WiFi.h> |
|
|
|
#include <ESP8266WebServer.h> |
|
|
|
#include <ESP8266WebServer.h> |
|
|
|
#include <AutoConnect.h> |
|
|
|
#include <AutoConnect.h> |
|
|
@ -24,8 +26,12 @@ String viewCredential(PageArgument&); |
|
|
|
String delCredential(PageArgument&); |
|
|
|
String delCredential(PageArgument&); |
|
|
|
|
|
|
|
|
|
|
|
// Specified the offset if the user data exists.
|
|
|
|
// Specified the offset if the user data exists.
|
|
|
|
//#define CREDENTIAL_OFFSET 0
|
|
|
|
// The following two lines define the boundalyOffset value to be supplied to
|
|
|
|
#define CREDENTIAL_OFFSET 64 |
|
|
|
// AutoConnectConfig respectively. It may be necessary to adjust the value
|
|
|
|
|
|
|
|
// accordingly to the actual situation.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define CREDENTIAL_OFFSET 0 |
|
|
|
|
|
|
|
//#define CREDENTIAL_OFFSET 64
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* An HTML for the operation page. |
|
|
|
* An HTML for the operation page. |
|
|
|