05-02-2021, 05:35 PM
I am going to have to re-write part of the socket layer (which I already re-wrote) so that disconnections are not handled asynchronously. Right now, it's a race to see what occurs first - the serial data being pulled from the ESP8266 or the loop getting back around to checking the disconnection. Slow baud rates lose, high baud rates win. If I don't have the asynchronously capability then file transfers are severely limited because ACK's have to occur in a very short period of time and the stock ESP8266 libraries do not allow for reads and writes (full duplex) from/to the ESP8266 at the same time. I fixed this, but this also affects the return message.