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.


  • Admin

    @rb3rg

    Could you create a pull request with the relevant changes?


Log in to reply
 

Suggested Topics

  • 1
  • 2
  • 2
  • 10
  • 5
  • 1

0
Online

11.2k
Users

11.1k
Topics

112.5k
Posts