Don't start mqtt when network option is cellular

Even when mqtt host is set
This commit is contained in:
samuelbles07
2025-03-31 14:01:49 +07:00
parent 37de127887
commit decdecdf22

View File

@ -423,6 +423,11 @@ static void initMqtt(void) {
return;
}
if (networkOption == UseCellular) {
Serial.println("MQTT not available for cellular options");
return;
}
if (mqttClient.begin(mqttUri)) {
Serial.println("Successfully connected to MQTT broker");
createMqttTask();