Chat freely about anything...

User avatar
By eta-sys
#27451 Dear friends,

I'm wondering does ESP change espconn_state (espconn.h) itself or I should carry about it? And what ESPCONN_WRITE, ESPCONN_READ mean? That is I've written to tcp send pipe or ESP writes to tcp receive buffer?
Thank's in advance,
eta-sys
______________________
espconn_state changes itself this way:

enum espconn_state {
ESPCONN_NONE, //0 TCP init
ESPCONN_WAIT, //1 TCP got IP
ESPCONN_LISTEN, //2
ESPCONN_CONNECT, //3 TCP connect, TCP sent
ESPCONN_WRITE, //4 TCP send
ESPCONN_READ, //5 TCP rcv
ESPCONN_CLOSE //6 TCP close, TCP recon (1,6,1,6...)
};