espconn_sent to send data of 21 bytes but I receive 2048 bytes

lhrossouw
Posts: 1
Joined: Fri Jun 03, 2016 3:57 pm

espconn_sent to send data of 21 bytes but I receive 2048 bytes

Postby lhrossouw » Fri Jun 03, 2016 4:41 pm

Hi,

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

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

Re: espconn_sent to send data of 21 bytes but I receive 2048 bytes

Postby ESP_Faye » Mon Jun 06, 2016 10:18 am

Hi,

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 !

Who is online

Users browsing this forum: No registered users and 13 guests