This commit is contained in:
Ben Meadors 2025-01-06 09:45:54 -06:00 committed by Thomas Göttgens
parent 5faeb45651
commit af6fa34034

View File

@ -48,10 +48,9 @@ class UdpMulticastThread : public concurrency::OSThread
if (!mp || WiFi.status() != WL_CONNECTED) {
return false;
}
LOG_DEBUG("Broadcasting MeshPacket (id=%u)", mp->id);
LOG_DEBUG("Broadcasting packet over UDP (id=%u)", mp->id);
uint8_t buffer[meshtastic_MeshPacket_size];
size_t encodedLength = pb_encode_to_bytes(buffer, sizeof(buffer), &meshtastic_MeshPacket_msg, mp);
LOG_DEBUG("Encoded MeshPacket size: %u", encodedLength);
udp.broadcastTo(buffer, encodedLength, UDP_MULTICAST_DEFAUL_PORT);
return true;
}