mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-02 17:53:46 +00:00
Changes
This commit is contained in:
parent
2530cda145
commit
473055d4e1
@ -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));
|
||||||
}
|
}
|
||||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user