@@ -40,7 +40,7 @@ ESP8266::ESP8266(PinName tx, PinName rx, bool debug, PinName rts, PinName cts)
40
40
_fail(false ),
41
41
_sock_already(false ),
42
42
_closed(false ),
43
- _connection_status (NSAPI_STATUS_DISCONNECTED)
43
+ _conn_status (NSAPI_STATUS_DISCONNECTED)
44
44
{
45
45
_serial.set_baud ( ESP8266_DEFAULT_BAUD_RATE );
46
46
_parser.debug_on (debug);
@@ -58,7 +58,7 @@ ESP8266::ESP8266(PinName tx, PinName rx, bool debug, PinName rts, PinName cts)
58
58
_parser.oob (" +CWJAP:" , callback (this , &ESP8266::_oob_connect_err));
59
59
_parser.oob (" WIFI " , callback (this , &ESP8266::_oob_connection_status));
60
60
_parser.oob (" UNLINK" , callback (this , &ESP8266::_oob_socket_close_err));
61
- _parser.oob (" ALREADY CONNECTED" , callback (this , &ESP8266::_oob_cipstart_already ));
61
+ _parser.oob (" ALREADY CONNECTED" , callback (this , &ESP8266::_oob_conn_already ));
62
62
63
63
for (int i= 0 ; i < SOCKET_COUNT; i++) {
64
64
_sock_i[i].open = false ;
@@ -809,7 +809,7 @@ void ESP8266::_oob_connect_err()
809
809
}
810
810
811
811
812
- void ESP8266::_oob_cipstart_already ()
812
+ void ESP8266::_oob_conn_already ()
813
813
{
814
814
_sock_already = true ;
815
815
_parser.abort ();
@@ -853,11 +853,11 @@ void ESP8266::_oob_connection_status()
853
853
char status[13 ];
854
854
if (_parser.recv (" %12[^\" ]\n " , status)) {
855
855
if (strcmp (status, " GOT IP\n " ) == 0 ) {
856
- _connection_status = NSAPI_STATUS_GLOBAL_UP;
856
+ _conn_status = NSAPI_STATUS_GLOBAL_UP;
857
857
} else if (strcmp (status, " DISCONNECT\n " ) == 0 ) {
858
- _connection_status = NSAPI_STATUS_DISCONNECTED;
858
+ _conn_status = NSAPI_STATUS_DISCONNECTED;
859
859
} else if (strcmp (status, " CONNECTED\n " ) == 0 ) {
860
- _connection_status = NSAPI_STATUS_CONNECTING;
860
+ _conn_status = NSAPI_STATUS_CONNECTING;
861
861
} else {
862
862
MBED_ERROR (MBED_MAKE_ERROR (MBED_MODULE_DRIVER, MBED_ERROR_CODE_EBADMSG), \
863
863
" ESP8266::_oob_connection_status: invalid AT cmd\n " );
@@ -899,5 +899,5 @@ bool ESP8266::set_default_wifi_mode(const int8_t mode)
899
899
900
900
nsapi_connection_status_t ESP8266::connection_status () const
901
901
{
902
- return _connection_status ;
902
+ return _conn_status ;
903
903
}
0 commit comments