Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Development
  3. Can someone confirm UDP gateway is working in 2.0.0?

Can someone confirm UDP gateway is working in 2.0.0?

Scheduled Pinned Locked Moved Development
3 Posts 2 Posters 917 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • rb3rgR Offline
    rb3rgR Offline
    rb3rg
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • rb3rgR Offline
      rb3rgR Offline
      rb3rg
      wrote on last edited by
      #2

      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.

      hekH 1 Reply Last reply
      2
      • rb3rgR rb3rg

        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.

        hekH Offline
        hekH Offline
        hek
        Admin
        wrote on last edited by
        #3

        @rb3rg

        Could you create a pull request with the relevant changes?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        10

        Online

        11.7k

        Users

        11.2k

        Topics

        113.1k

        Posts


        Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • MySensors
        • OpenHardware.io
        • Categories
        • Recent
        • Tags
        • Popular