added iris credential input
This commit is contained in:
@@ -17,6 +17,8 @@ platform = espressif8266
|
|||||||
framework = arduino
|
framework = arduino
|
||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
upload_speed = 115200
|
upload_speed = 115200
|
||||||
|
monitor_port = COM7
|
||||||
|
upload_port = COM7
|
||||||
board_build.flash_mode = dout
|
board_build.flash_mode = dout
|
||||||
build_flags =
|
build_flags =
|
||||||
-Wno-unused-function
|
-Wno-unused-function
|
||||||
|
|||||||
@@ -81,7 +81,15 @@ void setup() {
|
|||||||
INFOLN("╚═╝╚═╝ ╚═╝╚═╝╚══════╝");
|
INFOLN("╚═╝╚═╝ ╚═╝╚═╝╚══════╝");
|
||||||
INFOLN("== IRIS Kit [1.2.7] Powered by IRBaby ==");
|
INFOLN("== IRIS Kit [1.2.7] Powered by IRBaby ==");
|
||||||
|
|
||||||
|
// custom parameter for iris credentials
|
||||||
|
char iris_credential[40] = { 0 };
|
||||||
|
WiFiManagerParameter irisCredential("server", "Credential", iris_credential, 40);
|
||||||
|
wifi_manager.addParameter(&irisCredential);
|
||||||
wifi_manager.autoConnect();
|
wifi_manager.autoConnect();
|
||||||
|
|
||||||
|
strcpy(iris_credential, irisCredential.getValue());
|
||||||
|
INFOF("get iris credential : %s\n", iris_credential);
|
||||||
|
|
||||||
settingsLoad(); // load user settings form fs
|
settingsLoad(); // load user settings form fs
|
||||||
delay(5);
|
delay(5);
|
||||||
udpInit();
|
udpInit();
|
||||||
|
|||||||
Reference in New Issue
Block a user