From cb81df216bd0164e0cc32f4d29b8c629693dac77 Mon Sep 17 00:00:00 2001 From: MagicWarthog <25183686+aqw42@users.noreply.github.com> Date: Fri, 23 Dec 2022 17:15:21 +0100 Subject: [PATCH] Change maximum UDP datagram buffer size UDP packet will not send if its size is greater than 508, and the issue is hard to debug. I made this modification on my side and it works fine. Maybe add a warning if it is exceeded, instead of failing silently ? --- libraries/SocketWrapper/src/MbedUdp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/SocketWrapper/src/MbedUdp.h b/libraries/SocketWrapper/src/MbedUdp.h index a16eb44a4..3d5228ba6 100644 --- a/libraries/SocketWrapper/src/MbedUdp.h +++ b/libraries/SocketWrapper/src/MbedUdp.h @@ -28,7 +28,7 @@ #include "netsocket/UDPSocket.h" #ifndef WIFI_UDP_BUFFER_SIZE -#define WIFI_UDP_BUFFER_SIZE 508 +#define WIFI_UDP_BUFFER_SIZE 2048 #endif namespace arduino { @@ -105,4 +105,4 @@ class MbedUDP : public UDP { } -#endif \ No newline at end of file +#endif