Hi,
I'm using extended IPD statement with IP and PORT when data are available.
My question is, how to limit maximal number of bytes inside IPD statement?
When I'm trying retrieve data from server as client where response has together about 20k of data, in most cases, I got 1452 bytes packet size in 1 IPD and then a lot of these statements.
Sometimes, (I can't figure in what cases), I get 5092 bytes long IPD which is too big for my internal buffer.
How to make fix limit?
+IPD maximal number of data bytes
Re: +IPD maximal number of data bytes
Postby ESP_Faye » Mon Jan 04, 2016 10:50 am
Hi,
Sorry that we can not limit the +IPD maximal number, it is followed by the data received from network, for TCP connection, it can be 4x1460 bytes at most.
Thanks for your interest in ESP8266 !
Sorry that we can not limit the +IPD maximal number, it is followed by the data received from network, for TCP connection, it can be 4x1460 bytes at most.
Thanks for your interest in ESP8266 !
Re: +IPD maximal number of data bytes
Postby tilz0R » Mon Jan 04, 2016 6:02 pm
I'm not trying to be silly, but as far I know, LWIP always have data packets of fixed size, never more than 1518 bytes with headers included. If more data are available, there are more packets linked together on separate memory address. So I think, you can for each linked packet send +IPD command separate.
In other case, this is veeery too much data for one small 2K of ram MCU.
Have a nice day.
In other case, this is veeery too much data for one small 2K of ram MCU.
Have a nice day.
Who is online
Users browsing this forum: No registered users and 2 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.