We are trying to build a multiple client HTTP server using an ESP8266 board and the AT command set, connected to an Arduino board through the serial port. We are using an Arduino Mega 2560 board. It has more serial ports, so we can use one of the serial ports for debugging and one for communicating with the ESP8266 board. Thus, we discovered the following issue while debugging.
While receiving the data bytes from the ESP8266 (after the +IPD command), if another client connects while then data is being sent, the CONNECT event and the data from the newly connected client are sent out to the serial port before the previous transmission ends.
For example, the module sends "+IPD,0,300" (i.e. 300 bytes from client 0), then another client connects before the 300 bytes are completely written and the module immediately sends "1,CONNECT" (then +IPD and the new data, if it's the case).
We would expect the ESP8266 to enqueue the newly connected client's events until the initial transmission is finished.
Is there any way of achieving this with the AT commands in the "server" mode?
Thank you,
ClaudiuStatistics: Posted by claudiu.matei — Wed Nov 04, 2015 6:54 pm
]]>