Statistics: Posted by ESP_Faye — Thu Oct 30, 2014 9:38 am
Statistics: Posted by muris — Tue Oct 28, 2014 5:20 pm
Code:
espconn_regist_reconcb(ctrlConn, tcpclient_recon_cb);
/** Current state of the espconn. Non-TCP espconn are always in state ESPCONN_NONE! */
enum espconn_state {
ESPCONN_NONE,
ESPCONN_WAIT,
ESPCONN_LISTEN,
ESPCONN_CONNECT,
ESPCONN_WRITE,
ESPCONN_READ,
ESPCONN_CLOSE
};
Statistics: Posted by muris — Tue Oct 28, 2014 3:36 pm
Code:
remot_info *pinfo = NULL;
espconn_get_connection_info(espconn, &pinfo , 0);
Statistics: Posted by ESP_Faye — Tue Oct 28, 2014 9:08 am
Code:
remot_info *pinfo = NULL;
espconn_get_connection_info(espconn, &pinfo , 0);
Statistics: Posted by costaud — Tue Oct 28, 2014 12:47 am
Code:
/******************************************************************************
* FunctionName : espconn_get_connection_info
* Description : used to specify the function that should be called when disconnect
* Parameters : espconn -- espconn to set the err callback
* discon_cb -- err callback function to call when err
* Returns : none
*******************************************************************************/
sint8 espconn_get_connection_info(struct espconn *pespconn, remot_info **pcon_info, uint8 typeflags);
Code:
remot_info *ri = (struct remot_info *)os_zalloc(sizeof(struct remot_info));
espconn_get_connection_info(myConn, &ri, 0);
enum espconn_state connInfo = ri->state;
// connInfo now holds information about myConn connection?
Statistics: Posted by muris — Mon Oct 27, 2014 7:56 pm