We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1270318 commit 2416f4eCopy full SHA for 2416f4e
src/mqtt.cpp
@@ -558,6 +558,13 @@ void startMQTTStatusTask()
558
mqttRun = false;
559
mqttKill = false;
560
561
+ #ifndef MQTT_HOST
562
+ // if no MQTT, return early
563
+ Serial.println("[MQTT] not starting status task, MQTT_HOST not defined");
564
+ mqttFailed = true; // to avoid endless wait in sleep.cpp#86
565
+ return;
566
+ #endif
567
+
568
xTaskCreate(
569
sendMQTTStatusTask, /* Task function. */
570
"MQTT_STAT_TASK", /* String with name of task. */
0 commit comments