-->
Page 1 of 1

'class WiFiUDP' has no member named 'localPort'

PostPosted: Sun Mar 01, 2020 12:54 am
by CLK
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.