'class WiFiUDP' has no member named 'localPort'
Posted: Sun Mar 01, 2020 12:54 am
I'm using an arduino pro mini 3.3V with the ESP8266 module. I downloaded CNMAT's OSC libraries here: https://github.com/CNMAT/OSC
I tried the ESP8266sendMessage example and when I verified I got the error: 'class WiFiUDP' has no member named 'localPort'
It came from this line in the sketch: Serial.println(Udp.localPort());
I tried commenting it out and it compiled fine. But then when I checked the serial monitor, all that was printing was:
Connecting to (nameOfMyNetwork)
.............................................................................
And it just never fully connected. I don't know if this problem was caused by the first, or what is going on.
I tried the ESP8266sendMessage example and when I verified I got the error: 'class WiFiUDP' has no member named 'localPort'
It came from this line in the sketch: Serial.println(Udp.localPort());
I tried commenting it out and it compiled fine. But then when I checked the serial monitor, all that was printing was:
Connecting to (nameOfMyNetwork)
.............................................................................
And it just never fully connected. I don't know if this problem was caused by the first, or what is going on.