[soc] optimized wifimanager params

This commit is contained in:
strawmanbobi
2024-02-05 16:01:30 +08:00
parent 106fbd7cf7
commit a93aa00b13
2 changed files with 4 additions and 4 deletions

View File

@@ -18,8 +18,8 @@ platform = espressif8266
framework = arduino
monitor_speed = 115200
upload_speed = 115200
upload_port = COM5
monitor_port = COM5
upload_port = /dev/ttyUSB0
monitor_port = /dev/ttyUSB0
board_build.flash_mode = dout
build_flags =
-Wno-unused-function

View File

@@ -130,11 +130,11 @@ void setup() {
} else {
INFOLN("iriskit settings not loaded, set it from WifiManager");
server_address =
new WiFiManagerParameter("server_address", "Server Address", "", URL_SHORT_MAX);
new WiFiManagerParameter("server_address", "Server Address", "iris.irext.net", URL_SHORT_MAX);
credential_token =
new WiFiManagerParameter("credential_token", "Credential Token", "", CREDENTIAL_MAX);
password =
new WiFiManagerParameter("password", "User Password", "", PASSWORD_MAX);
new WiFiManagerParameter("password", "User Password", "", PASSWORD_MAX, "type='password'");
if (NULL == server_address || NULL == credential_token || NULL == password) {
ERRORLN("not enough memory to create settings");