
Originally Posted by
richard
I did not get bullet proof solution with the pic chips I have. they lack sufficient ram but work ok for modest requests
The best solution I have found is to make a queue of ipds to serve
1. serve up your html/cgi page as one unbroken stream (needs heaps of ram) using int driven hardware serial method , note what ipd you have served and remove from queue
2. have a large rx buffer big enough for the biggest request form (about 450 bytes from an android device) this must be back ground int driven method too
3. when not serving , scan rx buffer for new +ipd add to queue
4. the whole process falls to bits if a requesting device asks for a refresh when a request is already pending for that ipd , this I find will lock the esp8266 up or cause it to reset and then lock up (post#50)
I have had much better results with an arduino mega2650 , the faster cpu and 8k of ram makes it easier to do things this way and C 's string functions help too
when I get around to it I will look at tcp/udp methods , its appears to be much more robust
Bookmarks