mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-28 07:57:18 +02:00
Don't start mqtt when network option is cellular
Even when mqtt host is set
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user