This commit is contained in:
Ben Meadors 2025-01-07 19:34:45 -06:00
parent 2530cda145
commit 473055d4e1
2 changed files with 3 additions and 3 deletions

View File

@ -632,7 +632,7 @@ void Router::handleReceived(meshtastic_MeshPacket *p, RxSource src)
mqtt->onSend(*p_encrypted, *p, p->channel); mqtt->onSend(*p_encrypted, *p, p->channel);
#endif #endif
#if HAS_UDP_MULTICAST #if HAS_UDP_MULTICAST
if ((decoded || p_encrypted->pki_encrypted) && !isFromUs(p) && udpThread && if ((decoded || p_encrypted->pki_encrypted) && udpThread &&
config.network.enabled_protocols & meshtastic_Config_NetworkConfig_ProtocolFlags_UDP_BROADCAST) { config.network.enabled_protocols & meshtastic_Config_NetworkConfig_ProtocolFlags_UDP_BROADCAST) {
udpThread->onSend(const_cast<meshtastic_MeshPacket *>(p_encrypted)); udpThread->onSend(const_cast<meshtastic_MeshPacket *>(p_encrypted));
} }

View File

@ -59,7 +59,7 @@ class UdpMulticastThread : public concurrency::OSThread
int32_t runOnce() override int32_t runOnce() override
{ {
canSleep = true; canSleep = true;
// TODO: Might consider a heartbeat for discovery or keep alive? // TODO: Implement nodeinfo broadcast
return UDP_MULTICAST_THREAD_INTERVAL_MS; return UDP_MULTICAST_THREAD_INTERVAL_MS;
} }
@ -67,4 +67,4 @@ class UdpMulticastThread : public concurrency::OSThread
IPAddress udpIpAddress; IPAddress udpIpAddress;
AsyncUDP udp; AsyncUDP udp;
}; };
#endif // ARCH_ESP32 #endif // ARCH_ESP32