ESP8266 Developer Zone The Official ESP8266 Forum 2016-06-06T10:18:44+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=2252 2016-06-06T10:18:44+08:00 2016-06-06T10:18:44+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2252&p=7209#p7209 <![CDATA[Re: espconn_sent to send data of 21 bytes but I receive 2048 bytes]]>
Sorry that we can not reproduce your problem.

Here is some sample code of ESP8266, maybe you can refer to http://bbs.espressif.com/viewforum.php?f=31.

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

Thanks for your interest in ESP8266 !

Statistics: Posted by ESP_Faye — Mon Jun 06, 2016 10:18 am


]]>
2016-06-03T16:41:55+08:00 2016-06-03T16:41:55+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2252&p=7194#p7194 <![CDATA[espconn_sent to send data of 21 bytes but I receive 2048 bytes]]>
Googled a bit but couldn't find anyone with this issue.

I use espconn_sent to send data of 21 bytes but I receive the entire 2048 bytes of the buffer on my server.

espconn_sent(conn_info, (unsigned char *)data, 21);

rcv: length = 2048 data = [IOT00001,,19.1,19.3[d][a][ffff][ffff][ffff][ffff][ffff]......

So I recieve the 21 bytes of data but I receive the rest of the 2048 buffer as well.

Am I doing something wrong, or is it a known issue?

Thanks,
lhr

Statistics: Posted by lhrossouw — Fri Jun 03, 2016 4:41 pm


]]>