/*!
* @file WC_AP_HTML.h
*
* HTML snippets to build the Access Point portal and the Parameters Portal.
*
* Written by Stuart Blair
*
* GNU General Public License v3.0 licence, all text here must be included in any redistribution and you should receive a copy of the license file.
*
*/
#ifndef WC_AP_HTML
#define WC_AP_HTML ///< Define to stop re-inclusion
/*! \def char AP_HTTP_HEAD[] PROGMEM
Start of HTML output
*/
const char AP_HTTP_HEAD[] PROGMEM = "
";
/** Start of our HTMl configuration Form */
const char AP_HTTP_PORTAL_OPTIONS[] PROGMEM = "
Connect this device to a WiFi network. Select the option to find a WiFi network.
";
/** HTML snippet for wifi scanning */
const char AP_HTTP_ITEM[] PROGMEM = "
";
/** HTML form for saving wifi connection details */
const char AP_HTTP_FORM_START[] PROGMEM ="
";
/** HTML snippet to recan for networks */
const char AP_HTTP_SCAN_LINK[] PROGMEM = "
";
/** HTML snippet for saved confirmation */
// https://stackoverflow.com/questions/20760635/why-does-setting-xmlhttprequest-responsetype-before-calling-open-throw
// https://esprima.org/demo/validate.html
// https://javascript-minifier.com/
/* Use JavaScript to ping the ESP periodically @ the AP IP address.
* If it comes back as an AP again then we know the connection to the WiFi didn't work.
* We wait about 30 seconds to determine this outcome. This isn't 100% foolproof, but should be good enough.
*/
/*
*/
const char AP_HTTP_SAVED[] PROGMEM = "
Credentials Saved.
Attempting to connect to WiFi network. Please wait....
Connected to {ap} !
You may now close this window.
Failed to connect to {ap}!
Click here to try again.
";
/** End of the HTML page */
const char AP_HTTP_END[] PROGMEM = "
";
/** HTML snippet for our custom parameters portal form */
const char AP_HTTP_PORTAL_PARAM_OPTIONS[] PROGMEM = "