-->
Page 1 of 2

UDP Client Example

PostPosted: Tue Mar 31, 2015 10:20 am
by gerardwr
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

Re: UDP Client Example

PostPosted: Mon Apr 06, 2015 4:55 am
by jnogues
Thanks for share your work!!

jnogues

Re: UDP Client Example

PostPosted: Tue Jul 05, 2016 4:03 pm
by dominator99
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

Re: UDP Client Example

PostPosted: Tue Jul 05, 2016 5:43 pm
by pipi61
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