Can someone confirm UDP gateway is working in 2.0.0?
-
I'm trying to compile an Ethernet gateway with support for UDP (MY_USE_UDP) however I can't get it compiled.. I've tried with Arduino IDE 1.6.10 and also in PlatformIO
This library <WiFiUdp.h>, where do I grab it from? Use the one from the ESP8266Wifi arduino core?
Without UDP both Arduino and platformIO get it compiled successful, but it I enable the MY_USE_UDP will fail in:
(MyGatewayTransportEthernet.cpp:46:25: error: 'WiFiClient' does not name a type #define EthernetClient WiFiClient
Does anyone have success using UDP in 2.0.0 ?
Thanks.
-
Yes, I can confirm its working..
in the GatewayESP8266 make sure to change from this:#if defined(MY_USE_UDP) #include <WiFiUdp.h> #else #include <ESP8266WiFi.h> #endif
to
#include <WiFiUdp.h> #include <ESP8266WiFi.h>
You have to have both libraries instead of just one (wiFiUdp.h)
For case sensitive systems (Linux, OS X) also you have to have the correct upper/lower case in the library name.. it must be:#include <WiFiUdp.h>
and NOT:
#include <WiFiUDP.h>
as in the the example mysensors file.
-
Could you create a pull request with the relevant changes?
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33 -
Counting Incoming and Outgoing Messages from a Gateway
Development • 10 Dec 2024, 21:57 • Trand 14 Dec 2024, 20:23 -
Adding Listen only device to my system.
Development • 26 Feb 2025, 00:39 • dpcons 26 Feb 2025, 06:26 -
Sending offset to node
Development • 31 Jan 2025, 00:59 • bsl88k 4 Feb 2025, 12:14 -
Saving last known good state, but not in EEPROM
Development • 30 Jan 2024, 18:46 • OldSurferDude 15 Jan 2025, 08:51