Here we can all chat about fixing the AT+ command structure and the associated responses.

User avatar
By GregorPa
#2946 Hello,

tnx for great info and work...

Yesterday im starting tested ATPROTO.
When i simulate web server .. have problem with large page..

Command AT+CIPSENDI=0,"this is test" send only 250 character. True?
I have web page with 1500 character. Ok, one way is send page with part of large page...

Any other solutin for this problem?

Br
Greg
User avatar
By igrr
#2966 Hi Greg,
The command line is limited to 255 bytes, so with the current firmware you can split the response into parts:
AT+CIPSENDI=0,"first 250 bytes"
OK
+CIPSENDI:0
AT+CIPSENDI=0,"second 250 bytes"
OK
+CIPSENDI:0

And so on.

Another option is to implement pass-through data mode (like the data mode of the phone line modems). It is possible, but I haven't yet done this. If you feel like tinkering with the firmware code, I can give you some pointers on how this can be implemented (there's already some basic support for data mode in my code).

edit: data mode will also require implementing flow control. So probably it's not all that easy.

edit 2: You can also replace the following line in target/esp8266/main.c
dce = dce_init(256);

with
dce = dce_init(1600);

to increase the command line buffer. But it's kind of a hack. What if you suddenly need to send a 3k byte web page? ;)