mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-27 06:32:19 +03:00
исправление вывода лога в режиме AP
This commit is contained in:
@@ -11,11 +11,11 @@ void SerialPrint(const String& errorLevel, const String& module, const String& m
|
||||
tosend += msg;
|
||||
Serial.println(tosend);
|
||||
|
||||
if (isNetworkActive()) {
|
||||
if (jsonReadInt(settingsFlashJson, F("log")) != 0) {
|
||||
sendStringToWs(F("corelg"), tosend, -1);
|
||||
}
|
||||
// if (isNetworkActive()) { // все проверки происходят в sendStringToWs()
|
||||
if (jsonReadInt(settingsFlashJson, F("log")) != 0) {
|
||||
sendStringToWs(F("corelg"), tosend, -1);
|
||||
}
|
||||
// }
|
||||
|
||||
if (errorLevel == "E") {
|
||||
cleanString(tosend);
|
||||
|
||||
@@ -115,9 +115,13 @@ boolean RouterFind(String ssid) {
|
||||
return res;
|
||||
}
|
||||
|
||||
// boolean isNetworkActive() {
|
||||
// return WiFi.status() == WL_CONNECTED;
|
||||
// }
|
||||
boolean isNetworkActive() {
|
||||
return WiFi.status() == WL_CONNECTED;
|
||||
}
|
||||
|
||||
uint8_t getNumAPClients() {
|
||||
return WiFi.softAPgetStationNum();
|
||||
}
|
||||
|
||||
uint8_t RSSIquality() {
|
||||
uint8_t res = 0;
|
||||
|
||||
Reference in New Issue
Block a user