Resolve issue with wifi reconnection on M5Stack boards (#907)

And update libraries
This commit is contained in:
Florian authored and GitHub committed 2021-03-27 09:26:15 -05:00
1 parent cd55f0dfd5
commit f01b7184a0
3 files changed
+14 -19

No files matched your search

-2
View File
@@ -755,12 +755,10 @@ void startProcessing() {
void coreTask(void* pvParameters) {
while (true) {
Log.trace(F("BT Task running on core: %d" CR), xPortGetCoreID());
if (!ProcessLock) {
int n = 0;
while (client.state() != 0 && n <= InitialMQTTConnectionTimeout && !ProcessLock) {
n++;
Log.trace(F("Wait for MQTT on core: %d attempt: %d" CR), xPortGetCoreID(), n);
delay(1000);
}
if (client.state() != 0) {