espconn_sent_cb with multiple queued packets

Anki
Posts: 25
Joined: Thu Apr 09, 2015 3:00 am

espconn_sent_cb with multiple queued packets

Postby Anki » Wed Apr 15, 2015 12:52 am

I am using a UDP espconn to send data and have a espconn_sent_callback registered so I can free the packet buffer after it has been sent. Unfortunately, the only argument to espconn_sent_callback is the espconn so if I have queued multiple packets by calls to espconn_sent, how do I know which one of them has been sent? Are UDP packets guaranteed to be sent in the order they were queued?

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

Re: espconn_sent_cb with multiple queued packets

Postby ESP_Faye » Wed Apr 15, 2015 10:12 am

Hi,

Thanks for your interest in ESP8266 !

yes, they will be sent in the order.

Who is online

Users browsing this forum: No registered users and 157 guests