mirror of
https://github.com/alexhopeoconnor/WiFiManager.git
synced 2026-10-22 10:42:10 +10:00
remove reset from basic
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
|
|
||||||
void setup() {
|
void setup() {
|
||||||
WiFi.mode(WIFI_STA); // explicitly set mode, esp defaults to STA+AP
|
// WiFi.mode(WIFI_STA); // explicitly set mode, esp defaults to STA+AP
|
||||||
// it is a good practice to make sure your code sets wifi mode how you want it.
|
// it is a good practice to make sure your code sets wifi mode how you want it.
|
||||||
|
|
||||||
// put your setup code here, to run once:
|
// put your setup code here, to run once:
|
||||||
@@ -13,7 +13,7 @@ void setup() {
|
|||||||
|
|
||||||
// reset settings - wipe stored credentials for testing
|
// reset settings - wipe stored credentials for testing
|
||||||
// these are stored by the esp library
|
// these are stored by the esp library
|
||||||
wm.resetSettings();
|
// wm.resetSettings();
|
||||||
|
|
||||||
// Automatically connect using saved credentials,
|
// Automatically connect using saved credentials,
|
||||||
// if connection fails, it starts an access point with the specified name ( "AutoConnectAP"),
|
// if connection fails, it starts an access point with the specified name ( "AutoConnectAP"),
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ void setup() {
|
|||||||
// wm.erase();
|
// wm.erase();
|
||||||
|
|
||||||
// setup some parameters
|
// setup some parameters
|
||||||
|
|
||||||
WiFiManagerParameter custom_html("<p style=\"color:pink;font-weight:Bold;\">This Is Custom HTML</p>"); // only custom html
|
WiFiManagerParameter custom_html("<p style=\"color:pink;font-weight:Bold;\">This Is Custom HTML</p>"); // only custom html
|
||||||
WiFiManagerParameter custom_mqtt_server("server", "mqtt server", "", 40);
|
WiFiManagerParameter custom_mqtt_server("server", "mqtt server", "", 40);
|
||||||
WiFiManagerParameter custom_mqtt_port("port", "mqtt port", "", 6);
|
WiFiManagerParameter custom_mqtt_port("port", "mqtt port", "", 6);
|
||||||
|
|||||||
Reference in New Issue
Block a user