As shown in the figure, my program sent 2048 bytes every second automatically, but only the first packet are received correctly by esp8266. And as is observed data was sent before esp8266 echo back 'ok', although the I received "send ok" after that. An instant question for this is: how long does it take for esp8266 to execute the command? and how long will it cost for esp8266 to send all these 2048 bytes of data? Another question based on this observation is why esp8266 only received 1965 bytes of data while the actual amount of data sent via serial port to esp8266 is 2048 bytes?
>> AT Command and Data sent
>> Data received at TCP Server
Also, what happens if you send the 2048 bytes as packets of 2 x 1024 bytes packages?
I would recommend using shorter send lengths as long packets may take time to send if network conditions are not good (retransmisisons).
Also, secure connections will have limits on how much data you can send at a time.
Are you using a secure connection?
Who is online
Users browsing this forum: No registered users and 4 guests
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
We also have a RTOS version and a MESH version too!
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!