mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-04 02:34:14 +00:00
Logs
This commit is contained in:
parent
5faeb45651
commit
af6fa34034
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user