reactivate mqtt output

This commit is contained in:
2023-05-31 09:11:26 +02:00
parent 22eb6788c3
commit e0d6853961
4 changed files with 14 additions and 4 deletions
+7 -1
View File
@@ -121,7 +121,7 @@ bool Network::checkMQTT() {
lastReconnectAttempt = now;
// Attempt to reconnect
if (connectMQTT())
lastReconnectAttempt = 0;
return true;
}
return false;
}
@@ -129,6 +129,12 @@ bool Network::checkMQTT() {
return true;
}
bool Network::initMQTT() {
if (connectMQTT())
return true;
return false;
}
int32_t Network::getWiFiChannel(const char *ssid) {
if (int32_t n = WiFi.scanNetworks())
for (uint8_t i=0; i<n; i++)