Skip to content

Commit

Permalink
Temporarily disable MDNS when MQTT is enabled (meshtastic#5418)
Browse files Browse the repository at this point in the history
Leads to a panic
  • Loading branch information
GUVWAF authored and fifieldt committed Dec 14, 2024
1 parent 2f3d6ed commit baad3e5
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 baad3e5

Please sign in to comment.