Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By gerardwr
#13111 Please find attached a working UDP Client Example.

The picture below is an actual screen dump of a Mac acting as the server, displaying the messages from the UDPClient sketch on the ESP.

Schermafbeelding 2015-03-31 om 17.05.57.png


UDPClient.ino.zip
You do not have the required permissions to view the files attached to this post.
User avatar
By dominator99
#50259 I'm using 2 Adafruit Feather Huzzah ESP8266 connected to USB on 2 Windows 7 computers; one as a server & the other as a client.

I've managed to get your UdpServer to connect as in:

'SSID: yourssid
IP Address: 0.0.0.0
Connected to wifi
Udp server started at port 2390'

but I can't get the UDPClient to connect to WiFi; I get this:

'Connecting to yourssid
............................................................................................'

I've tried turning off firewall on both computers but the connection problem remains.

The CHG LED flashes on the server but not on the client; apparently this is normal if no battery is connected
User avatar
By pipi61
#50262
dominator99 wrote:I'm using 2 Adafruit Feather Huzzah ESP8266 connected to USB on 2 Windows 7 computers; one as a server & the other as a client.

I've managed to get your UdpServer to connect as in:

'SSID: yourssid
IP Address: 0.0.0.0
Connected to wifi
Udp server started at port 2390'

but I can't get the UDPClient to connect to WiFi; I get this:

'Connecting to yourssid
............................................................................................'


Hi!
where source?
if use connect two esp direct, without wifi router/ap, then set one module WiFi.mode(WIFI_STA); and other set to WiFi.mode(WIFI_AP_STA); or WIFI_AP