ESP8266 Developer Zone The Official ESP8266 Forum 2020-05-08T04:03:19+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=57864 2020-05-08T04:03:19+08:00 2020-05-08T04:03:19+08:00 https://bbs.espressif.com:443/viewtopic.php?t=57864&p=78248#p78248 <![CDATA[espconn_send and Queuing Data]]> It seems NONOS SDK, just buffers and signals the data to be sent when returning back to the system level from userland.
What I am looking for is to call the same function twice to queue and send the dataout. One of my ideas was to use a function like this

Setup send callback

add multiple char * use Add to map

Call SendAll.

void * ArrayPtr[];
void AddToMap(char * data)
{
Add data ptr to ArrayPtr[]
}

void * sendAll()
{
loop through each element, if not = to 0x0 then its a valid pointer
Send Data, return from this function and wait for call back.
}

void CallbackfromSend
{
sendAll();
}


Has anyone implemented an idea like this or one even better / simpler for queuing data?

Statistics: Posted by AgentSmithers — Fri May 08, 2020 4:03 am


]]>