ESP8266 Developer Zone The Official ESP8266 Forum 2017-07-24T18:39:33+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=5557 2017-07-24T18:39:33+08:00 2017-07-24T18:39:33+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5557&p=14806#p14806 <![CDATA[Re: TCP reconnetion error code -9 or -11]]> Note that LwIP sources are open and you can check the error codes from source files easily. Takes a minute only :)

Code:

#define ESPCONN_OK          0    /* No error, everything OK. */
#define ESPCONN_MEM        -1    /* Out of memory error.     */
#define ESPCONN_TIMEOUT    -3    /* Timeout.                 */
#define ESPCONN_RTE        -4    /* Routing problem.         */
#define ESPCONN_INPROGRESS  -5    /* Operation in progress    */
#define ESPCONN_MAXNUM      -7    /* Total number exceeds the set maximum*/

#define ESPCONN_ABRT       -8    /* Connection aborted.      */
#define ESPCONN_RST        -9    /* Connection reset.        */
#define ESPCONN_CLSD       -10   /* Connection closed.       */
#define ESPCONN_CONN       -11   /* Not connected.           */

#define ESPCONN_ARG        -12   /* Illegal argument.        */
#define ESPCONN_IF         -14    /* UDP send error          */
#define ESPCONN_ISCONN     -15   /* Already connected.       */

#define ESPCONN_HANDSHAKE  -28   /* ssl handshake failed    */
#define ESPCONN_SSL_INVALID_DATA  -61   /* ssl application invalid    */

Statistics: Posted by Guest — Mon Jul 24, 2017 6:39 pm


]]>
2017-07-12T09:30:31+08:00 2017-07-12T09:30:31+08:00 https://bbs.espressif.com:443/viewtopic.php?t=5557&p=14532#p14532 <![CDATA[TCP reconnetion error code -9 or -11]]> Statistics: Posted by SPENCER — Wed Jul 12, 2017 9:30 am


]]>