mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 22:52:19 +03:00
stable
This commit is contained in:
@@ -7,7 +7,7 @@ void routerConnect() {
|
||||
|
||||
setLedStatus(LED_SLOW);
|
||||
WiFi.mode(WIFI_STA);
|
||||
byte tries = 20;
|
||||
byte tries = 40;
|
||||
|
||||
String _ssid = jsonReadStr(configSetupJson, "routerssid");
|
||||
String _password = jsonReadStr(configSetupJson, "routerpass");
|
||||
@@ -22,6 +22,7 @@ void routerConnect() {
|
||||
WiFi.setOutputPower(20.5);
|
||||
#endif
|
||||
SerialPrint("I", "WIFI", "ssid: " + _ssid);
|
||||
SerialPrint("I", "WIFI", "pass: " + _password);
|
||||
}
|
||||
|
||||
while (--tries && WiFi.status() != WL_CONNECTED) {
|
||||
|
||||
@@ -90,6 +90,12 @@ void setup() {
|
||||
ts.add(
|
||||
MYTEST, 10000, [&](void*) {
|
||||
Serial.println(configSetupJson.length());
|
||||
Serial.println(F("--------------------------------------"));
|
||||
Serial.println(jsonReadStr(configSetupJson, "apssidx"));
|
||||
Serial.println(jsonReadBool(configSetupJson, "telegonof"));
|
||||
Serial.println(jsonReadInt(configSetupJson, "mqttPort"));
|
||||
Serial.println(jsonReadInt(configSetupJson, "uartTX"));
|
||||
Serial.println(F("--------------------------------------"));
|
||||
},
|
||||
nullptr, true);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user