CORRUPTED DATA RETURNED FROM ESP8285 WHEN IN SOFTAP MODE?
Posted: Sat Apr 18, 2020 12:15 am
Hello,
I have a simple code which sets ESP8285 as an AP and creates a TCP socket beween an Android App and the ESP8285 with the latter being the server. The app sends commands (strings) to the ESP8285 which are printed on the serial interface for debug. The problem is that, most of the time the messages received by the ESP8285 are truncated and/or corrupted. If I connect the same two devices to a shared AP and then create a TCP socket, the messages are received correctly.
Below are the functions which program the ESP8285 as an AP and a server, as well as the receive callback function which does not do anything rather than printing the received message to the serial interface.
Any help would be appreciated.
I have a simple code which sets ESP8285 as an AP and creates a TCP socket beween an Android App and the ESP8285 with the latter being the server. The app sends commands (strings) to the ESP8285 which are printed on the serial interface for debug. The problem is that, most of the time the messages received by the ESP8285 are truncated and/or corrupted. If I connect the same two devices to a shared AP and then create a TCP socket, the messages are received correctly.
Below are the functions which program the ESP8285 as an AP and a server, as well as the receive callback function which does not do anything rather than printing the received message to the serial interface.
Any help would be appreciated.