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 WiFiClientDoes 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> #endifto
#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.
-
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> #endifto
#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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login