udp and espconn_sendto getting ESPCONN_ISCONN returns

alonso
Posts: 2
Joined: Wed Nov 18, 2015 10:35 pm

udp and espconn_sendto getting ESPCONN_ISCONN returns

Postby alonso » Wed Nov 18, 2015 10:48 pm

With UDP being a connectionless protocol I can't figure out
why I am getting ESPCONN_ISCONN returns when I
call espconn_sendto multiple times. The error is a hit or
miss as I send packets, so I think the ESP SDK is keeping internal
state on the UDP packet.

This happens whether I use the same local port or use
espconn_port to get a new one (that really surprises me).

Preferably I would like to reuse the espconn structure between
sending packets between the ESP and a single server.
Is there any way that I can do that?

Can someone share some insights?

sdk = 1.4.1

Thanks,

Alberto

ESP_Faye
Posts: 1646
Joined: Mon Oct 27, 2014 11:08 am

Re: udp and espconn_sendto getting ESPCONN_ISCONN returns

Postby ESP_Faye » Thu Nov 19, 2015 9:58 am

Hi,

Here is an example of UDP transmission http://bbs.espressif.com/viewtopic.php?f=31&t=440, please have a try.

If your problem is still unsolved, please provide your test code for debugging.

Thanks for your interest in ESP8266 !

Who is online

Users browsing this forum: No registered users and 24 guests