Skip to content

Commit

Permalink
Temporarily disable MDNS when MQTT is enabled (#5418)
Browse files Browse the repository at this point in the history
Leads to a panic
  • Loading branch information
GUVWAF authored Nov 21, 2024
1 parent 1089469 commit dbc5ec2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/mesh/wifi/WiFiAPClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ static void onNetworkConnected()
LOG_INFO("Start WiFi network services");

// start mdns
if (!MDNS.begin("Meshtastic")) {
if (
#ifdef ARCH_RP2040
!moduleConfig.mqtt.enabled && // MDNS is not supported when MQTT is enabled on ARCH_RP2040
#endif
!MDNS.begin("Meshtastic")) {
LOG_ERROR("Error setting up MDNS responder!");
} else {
LOG_INFO("mDNS Host: Meshtastic.local");
Expand Down

0 comments on commit dbc5ec2

Please sign in to comment.