/** * strings_en.h * engligh strings for * WiFiManager, a library for the ESP8266/Arduino platform * for configuration of WiFi credentials using a Captive Portal * * @author Creator tzapu * @author tablatronix * @version 0.0.0 * @license MIT */ #ifndef _WM_STRINGS_H_ #define _WM_STRINGS_H_ #ifndef WIFI_MANAGER_OVERRIDE_STRINGS // !!! ABOVE WILL NOT WORK if you define in your sketch, must be build flag, if anyone one knows how to order includes to be able to do this it would be neat.. I have seen it done.. const char WM_VERSION_STR[] PROGMEM = "v2.0.13-beta"; const char HTTP_HEAD_START[] PROGMEM = "" "" "" "" "" "{v}"; const char HTTP_SCRIPT[] PROGMEM = ""; // @todo add button states, disable on click , show ack , spinner etc const char HTTP_HEAD_END[] PROGMEM = "
"; // {c} = _bodyclass // example of embedded logo, base64 encoded inline, No styling here // const char HTTP_ROOT_MAIN[] PROGMEM = "

{v}

WiFiManager

"; const char HTTP_ROOT_MAIN[] PROGMEM = "

{t}

{v}

"; const char * const HTTP_PORTAL_MENU[] PROGMEM = { "

\n", // MENU_WIFI "

\n", // MENU_WIFINOSCAN "

\n", // MENU_INFO "

\n",//MENU_PARAM "

\n", // MENU_CLOSE "

\n",// MENU_RESTART "

\n", // MENU_EXIT "

\n", // MENU_ERASE "

\n",// MENU_UPDATE "

" // MENU_SEP }; // const char HTTP_PORTAL_OPTIONS[] PROGMEM = strcat(HTTP_PORTAL_MENU[0] , HTTP_PORTAL_MENU[3] , HTTP_PORTAL_MENU[7]); const char HTTP_PORTAL_OPTIONS[] PROGMEM = ""; const char HTTP_ITEM_QI[] PROGMEM = ""; // rssi icons const char HTTP_ITEM_QP[] PROGMEM = "
{r}%
"; // rssi percentage {h} = hidden showperc pref const char HTTP_ITEM[] PROGMEM = "
{v}{qi}{qp}
"; // {q} = HTTP_ITEM_QI, {r} = HTTP_ITEM_QP // const char HTTP_ITEM[] PROGMEM = "
{v} {R} {r}% {q} {e}
"; // test all tokens const char HTTP_FORM_START[] PROGMEM = "
"; const char HTTP_FORM_WIFI[] PROGMEM = "
Show Password"; const char HTTP_FORM_WIFI_END[] PROGMEM = ""; const char HTTP_FORM_STATIC_HEAD[] PROGMEM = "

"; const char HTTP_FORM_END[] PROGMEM = "

"; const char HTTP_FORM_LABEL[] PROGMEM = ""; const char HTTP_FORM_PARAM_HEAD[] PROGMEM = "

"; const char HTTP_FORM_PARAM[] PROGMEM = "
\n"; // do not remove newline! const char HTTP_SCAN_LINK[] PROGMEM = "
"; const char HTTP_SAVED[] PROGMEM = "
Saving Credentials
Trying to connect ESP to network.
If it fails reconnect to AP to try again
"; const char HTTP_PARAMSAVED[] PROGMEM = "
Saved
"; const char HTTP_END[] PROGMEM = "
"; const char HTTP_ERASEBTN[] PROGMEM = "
"; const char HTTP_UPDATEBTN[] PROGMEM = "
"; const char HTTP_BACKBTN[] PROGMEM = "

"; const char HTTP_STATUS_ON[] PROGMEM = "
Connected to {v}
with IP {i}
"; const char HTTP_STATUS_OFF[] PROGMEM = "
Not Connected to {v}{r}
"; // {c=class} {v=ssid} {r=status_off} const char HTTP_STATUS_OFFPW[] PROGMEM = "
Authentication Failure"; // STATION_WRONG_PASSWORD, no eps32 const char HTTP_STATUS_OFFNOAP[] PROGMEM = "
AP not found"; // WL_NO_SSID_AVAIL const char HTTP_STATUS_OFFFAIL[] PROGMEM = "
Could not Connect"; // WL_CONNECT_FAILED const char HTTP_STATUS_NONE[] PROGMEM = "
No AP set
"; const char HTTP_BR[] PROGMEM = "
"; const char HTTP_STYLE[] PROGMEM = ""; #ifndef WM_NOHELP const char HTTP_HELP[] PROGMEM = "

Available Pages


" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" "
PageFunction
/Menu page.
/wifiShow WiFi scan results and enter WiFi configuration.(/0wifi noscan)
/wifisaveSave WiFi configuration information and configure device. Needs variables supplied.
/paramParameter page
/infoInformation page
/uOTA Update
/closeClose the captiveportal popup,configportal will remain active
/exitExit Config Portal, configportal will close
/restartReboot the device
/eraseErase WiFi configuration and reboot Device. Device will not reconnect to a network until new WiFi configuration data is entered.
" "

Github https://github.com/tzapu/WiFiManager."; #else const char HTTP_HELP[] PROGMEM = ""; #endif const char HTTP_UPDATE[] PROGMEM = "Upload New Firmware

* May not function inside captive portal, Open in browser http://192.168.4.1"; const char HTTP_UPDATE_FAIL[] PROGMEM = "
Update Failed!
Reboot device and try again
"; const char HTTP_UPDATE_SUCCESS[] PROGMEM = "
Update Successful.
Device Rebooting now...
"; #ifdef WM_JSTEST const char HTTP_JS[] PROGMEM = ""; #endif // Info html // @todo remove html elements from progmem, repetetive strings #ifdef ESP32 const char HTTP_INFO_esphead[] PROGMEM = "

esp32


"; const char HTTP_INFO_chiprev[] PROGMEM = "
Chip Rev
{1}
"; const char HTTP_INFO_lastreset[] PROGMEM = "
Last reset reason
CPU0: {1}
CPU1: {2}
"; const char HTTP_INFO_aphost[] PROGMEM = "
Access Point Hostname
{1}
"; const char HTTP_INFO_psrsize[] PROGMEM = "
PSRAM Size
{1} bytes
"; const char HTTP_INFO_temp[] PROGMEM = "
Temperature
{1} C° / {2} F°
Hall
{3}
"; #else const char HTTP_INFO_esphead[] PROGMEM = "

esp8266


"; const char HTTP_INFO_fchipid[] PROGMEM = "
Flash Chip ID
{1}
"; const char HTTP_INFO_corever[] PROGMEM = "
Core Version
{1}
"; const char HTTP_INFO_bootver[] PROGMEM = "
Boot Version
{1}
"; const char HTTP_INFO_lastreset[] PROGMEM = "
Last reset reason
{1}
"; const char HTTP_INFO_flashsize[] PROGMEM = "
Real Flash Size
{1} bytes
"; #endif const char HTTP_INFO_memsmeter[] PROGMEM = "
"; const char HTTP_INFO_memsketch[] PROGMEM = "
Memory - Sketch Size
Used / Total bytes
{1} / {2}"; const char HTTP_INFO_freeheap[] PROGMEM = "
Memory - Free Heap
{1} bytes available
"; const char HTTP_INFO_wifihead[] PROGMEM = "

WiFi


"; const char HTTP_INFO_uptime[] PROGMEM = "
Uptime
{1} Mins {2} Secs
"; const char HTTP_INFO_chipid[] PROGMEM = "
Chip ID
{1}
"; const char HTTP_INFO_idesize[] PROGMEM = "
Flash Size
{1} bytes
"; const char HTTP_INFO_sdkver[] PROGMEM = "
SDK Version
{1}
"; const char HTTP_INFO_cpufreq[] PROGMEM = "
CPU Frequency
{1}MHz
"; const char HTTP_INFO_apip[] PROGMEM = "
Access Point IP
{1}
"; const char HTTP_INFO_apmac[] PROGMEM = "
Access Point MAC
{1}
"; const char HTTP_INFO_apssid[] PROGMEM = "
Access Point SSID
{1}
"; const char HTTP_INFO_apbssid[] PROGMEM = "
BSSID
{1}
"; const char HTTP_INFO_stassid[] PROGMEM = "
Station SSID
{1}
"; const char HTTP_INFO_staip[] PROGMEM = "
Station IP
{1}
"; const char HTTP_INFO_stagw[] PROGMEM = "
Station Gateway
{1}
"; const char HTTP_INFO_stasub[] PROGMEM = "
Station Subnet
{1}
"; const char HTTP_INFO_dnss[] PROGMEM = "
DNS Server
{1}
"; const char HTTP_INFO_host[] PROGMEM = "
Hostname
{1}
"; const char HTTP_INFO_stamac[] PROGMEM = "
Station MAC
{1}
"; const char HTTP_INFO_conx[] PROGMEM = "
Connected
{1}
"; const char HTTP_INFO_autoconx[] PROGMEM = "
Autoconnect
{1}
"; const char HTTP_INFO_aboutver[] PROGMEM = "
WiFiManager
{1}
"; const char HTTP_INFO_aboutarduino[] PROGMEM = "
Arduino
{1}
"; const char HTTP_INFO_aboutsdk[] PROGMEM = "
ESP-SDK/IDF
{1}
"; const char HTTP_INFO_aboutdate[] PROGMEM = "
Build Date
{1}
"; const char S_brand[] PROGMEM = "WiFiManager"; const char S_debugPrefix[] PROGMEM = "*wm:"; const char S_y[] PROGMEM = "Yes"; const char S_n[] PROGMEM = "No"; const char S_enable[] PROGMEM = "Enabled"; const char S_disable[] PROGMEM = "Disabled"; const char S_GET[] PROGMEM = "GET"; const char S_POST[] PROGMEM = "POST"; const char S_NA[] PROGMEM = "Unknown"; const char S_passph[] PROGMEM = "********"; const char S_titlewifisaved[] PROGMEM = "Credentials Saved"; const char S_titlewifisettings[] PROGMEM = "Settings Saved"; const char S_titlewifi[] PROGMEM = "Config ESP"; const char S_titleinfo[] PROGMEM = "Info"; const char S_titleparam[] PROGMEM = "Setup"; const char S_titleparamsaved[] PROGMEM = "Setup Saved"; const char S_titleexit[] PROGMEM = "Exit"; const char S_titlereset[] PROGMEM = "Reset"; const char S_titleerase[] PROGMEM = "Erase"; const char S_titleclose[] PROGMEM = "Close"; const char S_options[] PROGMEM = "options"; const char S_nonetworks[] PROGMEM = "No networks found. Refresh to scan again."; const char S_staticip[] PROGMEM = "Static IP"; const char S_staticgw[] PROGMEM = "Static Gateway"; const char S_staticdns[] PROGMEM = "Static DNS"; const char S_subnet[] PROGMEM = "Subnet"; const char S_exiting[] PROGMEM = "Exiting"; const char S_resetting[] PROGMEM = "Module will reset in a few seconds."; const char S_closing[] PROGMEM = "You can close the page, portal will continue to run"; const char S_error[] PROGMEM = "An Error Occured"; const char S_notfound[] PROGMEM = "File Not Found\n\n"; const char S_uri[] PROGMEM = "URI: "; const char S_method[] PROGMEM = "\nMethod: "; const char S_args[] PROGMEM = "\nArguments: "; const char S_parampre[] PROGMEM = "param_"; // debug strings const char D_HR[] PROGMEM = "--------------------"; // END WIFI_MANAGER_OVERRIDE_STRINGS #endif // ----------------------------------------------------------------------------------------------- // DO NOT EDIT BELOW THIS LINE const uint8_t _nummenutokens = 11; const char * const _menutokens[_nummenutokens] PROGMEM = { "wifi", "wifinoscan", "info", "param", "close", "restart", "exit", "erase", "update", "sep", "custom" }; const char R_root[] PROGMEM = "/"; const char R_wifi[] PROGMEM = "/wifi"; const char R_wifinoscan[] PROGMEM = "/0wifi"; const char R_wifisave[] PROGMEM = "/wifisave"; const char R_info[] PROGMEM = "/info"; const char R_param[] PROGMEM = "/param"; const char R_paramsave[] PROGMEM = "/paramsave"; const char R_restart[] PROGMEM = "/restart"; const char R_exit[] PROGMEM = "/exit"; const char R_close[] PROGMEM = "/close"; const char R_erase[] PROGMEM = "/erase"; const char R_status[] PROGMEM = "/status"; const char R_update[] PROGMEM = "/update"; const char R_updatedone[] PROGMEM = "/u"; //Strings const char S_ip[] PROGMEM = "ip"; const char S_gw[] PROGMEM = "gw"; const char S_sn[] PROGMEM = "sn"; const char S_dns[] PROGMEM = "dns"; // softap ssid default prefix #ifdef ESP8266 const char S_ssidpre[] PROGMEM = "ESP"; #elif defined(ESP32) const char S_ssidpre[] PROGMEM = "ESP32"; #else const char S_ssidpre[] PROGMEM = "WM"; #endif //Tokens //@todo consolidate and reduce const char T_ss[] PROGMEM = "{"; // token start sentinel const char T_es[] PROGMEM = "}"; // token end sentinel const char T_1[] PROGMEM = "{1}"; // @token 1 const char T_2[] PROGMEM = "{2}"; // @token 2 const char T_3[] PROGMEM = "{3}"; // @token 2 const char T_v[] PROGMEM = "{v}"; // @token v const char T_V[] PROGMEM = "{V}"; // @token v const char T_I[] PROGMEM = "{I}"; // @token I const char T_i[] PROGMEM = "{i}"; // @token i const char T_n[] PROGMEM = "{n}"; // @token n const char T_p[] PROGMEM = "{p}"; // @token p const char T_t[] PROGMEM = "{t}"; // @token t const char T_l[] PROGMEM = "{l}"; // @token l const char T_c[] PROGMEM = "{c}"; // @token c const char T_e[] PROGMEM = "{e}"; // @token e const char T_q[] PROGMEM = "{q}"; // @token q const char T_r[] PROGMEM = "{r}"; // @token r const char T_R[] PROGMEM = "{R}"; // @token R const char T_h[] PROGMEM = "{h}"; // @token h // http const char HTTP_HEAD_CL[] PROGMEM = "Content-Length"; const char HTTP_HEAD_CT[] PROGMEM = "text/html"; const char HTTP_HEAD_CT2[] PROGMEM = "text/plain"; const char HTTP_HEAD_CORS[] PROGMEM = "Access-Control-Allow-Origin"; const char HTTP_HEAD_CORS_ALLOW_ALL[] PROGMEM = "*"; const char * const WIFI_STA_STATUS[] PROGMEM { "WL_IDLE_STATUS", // 0 STATION_IDLE "WL_NO_SSID_AVAIL", // 1 STATION_NO_AP_FOUND "WL_SCAN_COMPLETED", // 2 "WL_CONNECTED", // 3 STATION_GOT_IP "WL_CONNECT_FAILED", // 4 STATION_CONNECT_FAIL, STATION_WRONG_PASSWORD(NI) "WL_CONNECTION_LOST", // 5 "WL_DISCONNECTED", // 6 "WL_STATION_WRONG_PASSWORD" // 7 KLUDGE }; #ifdef ESP32 const char * const AUTH_MODE_NAMES[] PROGMEM { "OPEN", "WEP", "WPA_PSK", "WPA2_PSK", "WPA_WPA2_PSK", "WPA2_ENTERPRISE", "MAX" }; #elif defined(ESP8266) const char * const AUTH_MODE_NAMES[] PROGMEM { "", "", "WPA_PSK", // 2 ENC_TYPE_TKIP "", "WPA2_PSK", // 4 ENC_TYPE_CCMP "WEP", // 5 ENC_TYPE_WEP "", "OPEN", //7 ENC_TYPE_NONE "WPA_WPA2_PSK", // 8 ENC_TYPE_AUTO }; #endif const char* const WIFI_MODES[] PROGMEM = { "NULL", "STA", "AP", "STA+AP" }; #ifdef ESP32 // as 2.5.2 // typedef struct { // char cc[3]; /**< country code string */ // uint8_t schan; /**< start channel */ // uint8_t nchan; /**< total channel number */ // int8_t max_tx_power; /**< This field is used for getting WiFi maximum transmitting power, call esp_wifi_set_max_tx_power to set the maximum transmitting power. */ // wifi_country_policy_t policy; /**< country policy */ // } wifi_country_t; const wifi_country_t WM_COUNTRY_US{"US",1,11,CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER,WIFI_COUNTRY_POLICY_AUTO}; const wifi_country_t WM_COUNTRY_CN{"CN",1,13,CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER,WIFI_COUNTRY_POLICY_AUTO}; const wifi_country_t WM_COUNTRY_JP{"JP",1,14,CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER,WIFI_COUNTRY_POLICY_AUTO}; #elif defined(ESP8266) && !defined(WM_NOCOUNTRY) // typedef struct { // char cc[3]; /**< country code string */ // uint8_t schan; /**< start channel */ // uint8_t nchan; /**< total channel number */ // uint8_t policy; /**< country policy */ // } wifi_country_t; const wifi_country_t WM_COUNTRY_US{"US",1,11,WIFI_COUNTRY_POLICY_AUTO}; const wifi_country_t WM_COUNTRY_CN{"CN",1,13,WIFI_COUNTRY_POLICY_AUTO}; const wifi_country_t WM_COUNTRY_JP{"JP",1,14,WIFI_COUNTRY_POLICY_AUTO}; #endif /* * ESP32 WiFi Events 0 SYSTEM_EVENT_WIFI_READY < ESP32 WiFi ready 1 SYSTEM_EVENT_SCAN_DONE < ESP32 finish scanning AP 2 SYSTEM_EVENT_STA_START < ESP32 station start 3 SYSTEM_EVENT_STA_STOP < ESP32 station stop 4 SYSTEM_EVENT_STA_CONNECTED < ESP32 station connected to AP 5 SYSTEM_EVENT_STA_DISCONNECTED < ESP32 station disconnected from AP 6 SYSTEM_EVENT_STA_AUTHMODE_CHANGE < the auth mode of AP connected by ESP32 station changed 7 SYSTEM_EVENT_STA_GOT_IP < ESP32 station got IP from connected AP 8 SYSTEM_EVENT_STA_LOST_IP < ESP32 station lost IP and the IP is reset to 0 9 SYSTEM_EVENT_STA_WPS_ER_SUCCESS < ESP32 station wps succeeds in enrollee mode 10 SYSTEM_EVENT_STA_WPS_ER_FAILED < ESP32 station wps fails in enrollee mode 11 SYSTEM_EVENT_STA_WPS_ER_TIMEOUT < ESP32 station wps timeout in enrollee mode 12 SYSTEM_EVENT_STA_WPS_ER_PIN < ESP32 station wps pin code in enrollee mode 13 SYSTEM_EVENT_AP_START < ESP32 soft-AP start 14 SYSTEM_EVENT_AP_STOP < ESP32 soft-AP stop 15 SYSTEM_EVENT_AP_STACONNECTED < a station connected to ESP32 soft-AP 16 SYSTEM_EVENT_AP_STADISCONNECTED < a station disconnected from ESP32 soft-AP 17 SYSTEM_EVENT_AP_STAIPASSIGNED < ESP32 soft-AP assign an IP to a connected station 18 SYSTEM_EVENT_AP_PROBEREQRECVED < Receive probe request packet in soft-AP interface 19 SYSTEM_EVENT_GOT_IP6 < ESP32 station or ap or ethernet interface v6IP addr is preferred 20 SYSTEM_EVENT_ETH_START < ESP32 ethernet start 21 SYSTEM_EVENT_ETH_STOP < ESP32 ethernet stop 22 SYSTEM_EVENT_ETH_CONNECTED < ESP32 ethernet phy link up 23 SYSTEM_EVENT_ETH_DISCONNECTED < ESP32 ethernet phy link down 24 SYSTEM_EVENT_ETH_GOT_IP < ESP32 ethernet got IP from connected AP 25 SYSTEM_EVENT_MAX typedef enum { ARDUINO_EVENT_WIFI_READY = 0, ARDUINO_EVENT_WIFI_SCAN_DONE, ARDUINO_EVENT_WIFI_STA_START, ARDUINO_EVENT_WIFI_STA_STOP, ARDUINO_EVENT_WIFI_STA_CONNECTED, ARDUINO_EVENT_WIFI_STA_DISCONNECTED, ARDUINO_EVENT_WIFI_STA_AUTHMODE_CHANGE, ARDUINO_EVENT_WIFI_STA_GOT_IP, ARDUINO_EVENT_WIFI_STA_GOT_IP6, ARDUINO_EVENT_WIFI_STA_LOST_IP, ARDUINO_EVENT_WIFI_AP_START, ARDUINO_EVENT_WIFI_AP_STOP, ARDUINO_EVENT_WIFI_AP_STACONNECTED, ARDUINO_EVENT_WIFI_AP_STADISCONNECTED, ARDUINO_EVENT_WIFI_AP_STAIPASSIGNED, ARDUINO_EVENT_WIFI_AP_PROBEREQRECVED, ARDUINO_EVENT_WIFI_AP_GOT_IP6, ARDUINO_EVENT_WIFI_FTM_REPORT, ARDUINO_EVENT_ETH_START, ARDUINO_EVENT_ETH_STOP, ARDUINO_EVENT_ETH_CONNECTED, ARDUINO_EVENT_ETH_DISCONNECTED, ARDUINO_EVENT_ETH_GOT_IP, ARDUINO_EVENT_ETH_GOT_IP6, ARDUINO_EVENT_WPS_ER_SUCCESS, ARDUINO_EVENT_WPS_ER_FAILED, ARDUINO_EVENT_WPS_ER_TIMEOUT, ARDUINO_EVENT_WPS_ER_PIN, ARDUINO_EVENT_WPS_ER_PBC_OVERLAP, ARDUINO_EVENT_SC_SCAN_DONE, ARDUINO_EVENT_SC_FOUND_CHANNEL, ARDUINO_EVENT_SC_GOT_SSID_PSWD, ARDUINO_EVENT_SC_SEND_ACK_DONE, ARDUINO_EVENT_PROV_INIT, ARDUINO_EVENT_PROV_DEINIT, ARDUINO_EVENT_PROV_START, ARDUINO_EVENT_PROV_END, ARDUINO_EVENT_PROV_CRED_RECV, ARDUINO_EVENT_PROV_CRED_FAIL, ARDUINO_EVENT_PROV_CRED_SUCCESS, ARDUINO_EVENT_MAX } arduino_event_id_t; typedef union { wifi_event_sta_scan_done_t wifi_scan_done; wifi_event_sta_authmode_change_t wifi_sta_authmode_change; wifi_event_sta_connected_t wifi_sta_connected; wifi_event_sta_disconnected_t wifi_sta_disconnected; wifi_event_sta_wps_er_pin_t wps_er_pin; wifi_event_sta_wps_fail_reason_t wps_fail_reason; wifi_event_ap_probe_req_rx_t wifi_ap_probereqrecved; wifi_event_ap_staconnected_t wifi_ap_staconnected; wifi_event_ap_stadisconnected_t wifi_ap_stadisconnected; wifi_event_ftm_report_t wifi_ftm_report; ip_event_ap_staipassigned_t wifi_ap_staipassigned; ip_event_got_ip_t got_ip; ip_event_got_ip6_t got_ip6; smartconfig_event_got_ssid_pswd_t sc_got_ssid_pswd; esp_eth_handle_t eth_connected; wifi_sta_config_t prov_cred_recv; wifi_prov_sta_fail_reason_t prov_fail_reason; } arduino_event_info_t; */ #endif