Skip to content

Commit a089462

Browse files
committed
don't start mqtt if ip not set
1 parent 5395a65 commit a089462

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,9 @@ void mqttConfigReset(const char* buf) {
974974
}
975975

976976
void wifiCallback() {
977-
mqtt_app_start();
977+
if (strcmp(espConfig::mqttData.mqttBroker.c_str(), "0.0.0.0")) {
978+
mqtt_app_start();
979+
}
978980
setupWeb();
979981
}
980982

0 commit comments

Comments
 (0)