ESP8266 WiFi Library Note -- WiFiUdp.h and WiFiUDP

Just a note about the use of character case with the WiFiUdp.h library – it can be troublesome especially if you wear trifocals :slight_smile:

Note that in the “include” statement below, the header name is “WiFiUdp.h” and that in the creation of an instance the name used is “WiFiUDP” .

#include <ESP8266WiFi.h>
#include <WiFiUdp.h>

const char* ssid = “";
const char* password = "

WiFiUDP Udp;

There may also be a library around somewhere labeled “WiFiUDP.h” or “WIFIUDP.h” that may cause additional confusion. I’m new to the ESP8266 and Arduino, so not sure about that though.


What is exactly your question ?

If it’s related to have 2 files using the same name but with different capital letter, there is no pb at all on case sensitive FS like on any Unix like (i.e. Linux) but lead to big headache on m$ systems.