ESP8266 Developer Zone The Official ESP8266 Forum 2015-07-11T15:00:27+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=715 2015-07-11T15:00:27+08:00 2015-07-11T15:00:27+08:00 https://bbs.espressif.com:443/viewtopic.php?t=715&p=2623#p2623 <![CDATA[Re: How to send data over a TCP connection ...]]>

Statistics: Posted by tve — Sat Jul 11, 2015 3:00 pm


]]>
2015-07-09T22:26:11+08:00 2015-07-09T22:26:11+08:00 https://bbs.espressif.com:443/viewtopic.php?t=715&p=2603#p2603 <![CDATA[Re: How to send data over a TCP connection ...]]> I really do appreciate your feedback. Its hard to find skilled folks in ESP8266 that I can chat with. Can I ask a favor though ... can you read my post again ... I'm missing what my error in understanding is ... as far as I can tell, your response is very, very similar to what I was thinking was happening ... and of course, I may be missing the wood from the trees ... if you can point out where my understanding is wrong, that would be awesome.

If you need an ESP8266 buddy to shoot the breeze with, let me know .. I'll be happy to exchange emails and skypes to chat.

Neil

Statistics: Posted by kolban — Thu Jul 09, 2015 10:26 pm


]]>
2015-07-09T12:50:41+08:00 2015-07-09T12:50:41+08:00 https://bbs.espressif.com:443/viewtopic.php?t=715&p=2592#p2592 <![CDATA[Re: How to send data over a TCP connection ...]]> . https://github.com/jeelabs/esp-link/blo ... pd/httpd.c might be one place to start, Espressif also has some demos...

Statistics: Posted by tve — Thu Jul 09, 2015 12:50 pm


]]>
2015-07-09T12:45:40+08:00 2015-07-09T12:45:40+08:00 https://bbs.espressif.com:443/viewtopic.php?t=715&p=2590#p2590 <![CDATA[How to send data over a TCP connection ...]]>
I believe that what I need to do is form a connection and then execute an espconn_sent() API call. This takes a buffer and a length and, I presume, sends the data. I notice that the length is an unsigned 16 bit value ... so that tells me that I can only send 16KBytes in one operation. Is that correct?

I am assuming that, like all the other SDK APIs, this command does not block. So that seems to say that I can call espconn_sent() and then immediately call a second espconn_sent() ... however ... my belief is that would be wrong. Instead, one should send data via espconn_sent() and return control back to the OS. When a sent_callback occurs, that is an indication that the data previously asked to be sent has now ACTUALLY be sent and we can repeat and send new data.

Is this assumption correct?

Statistics: Posted by kolban — Thu Jul 09, 2015 12:45 pm


]]>