@@ -53,7 +53,7 @@ ESP8266Interface::ESP8266Interface()
53
53
_started(false ),
54
54
_conn_stat(NSAPI_STATUS_DISCONNECTED),
55
55
_conn_stat_cb(NULL ),
56
- _geq (NULL ),
56
+ _global_event_queue (NULL ),
57
57
_oob_event_id(0 )
58
58
{
59
59
memset (_cbs, 0 , sizeof (_cbs));
@@ -79,7 +79,7 @@ ESP8266Interface::ESP8266Interface(PinName tx, PinName rx, bool debug, PinName r
79
79
_started(false ),
80
80
_conn_stat(NSAPI_STATUS_DISCONNECTED),
81
81
_conn_stat_cb(NULL ),
82
- _geq (NULL ),
82
+ _global_event_queue (NULL ),
83
83
_oob_event_id(0 )
84
84
{
85
85
memset (_cbs, 0 , sizeof (_cbs));
@@ -99,7 +99,7 @@ ESP8266Interface::ESP8266Interface(PinName tx, PinName rx, bool debug, PinName r
99
99
ESP8266Interface::~ESP8266Interface ()
100
100
{
101
101
if (_oob_event_id) {
102
- _geq ->cancel (_oob_event_id);
102
+ _global_event_queue ->cancel (_oob_event_id);
103
103
}
104
104
}
105
105
@@ -118,10 +118,10 @@ int ESP8266Interface::connect(const char *ssid, const char *pass, nsapi_security
118
118
return connect ();
119
119
}
120
120
121
- void ESP8266Interface::_oob2geq ()
121
+ void ESP8266Interface::_oob2global_event_queue ()
122
122
{
123
- _geq = mbed_event_queue ();
124
- _oob_event_id = _geq ->call_every (ESP8266_RECV_TIMEOUT, callback (this , &ESP8266Interface::proc_oob_evnt));
123
+ _global_event_queue = mbed_event_queue ();
124
+ _oob_event_id = _global_event_queue ->call_every (ESP8266_RECV_TIMEOUT, callback (this , &ESP8266Interface::proc_oob_evnt));
125
125
126
126
if (!_oob_event_id) {
127
127
MBED_ERROR (MBED_MAKE_ERROR (MBED_MODULE_DRIVER, MBED_ERROR_CODE_ENOMEM), \
@@ -149,7 +149,7 @@ int ESP8266Interface::connect()
149
149
}
150
150
151
151
if (!_oob_event_id) {
152
- _oob2geq ();
152
+ _oob2global_event_queue ();
153
153
}
154
154
155
155
if (get_ip_address ()) {
@@ -655,7 +655,7 @@ void ESP8266Interface::update_conn_state_cb()
655
655
default :
656
656
_started = false ;
657
657
_initialized = false ;
658
- _geq ->cancel (_oob_event_id);
658
+ _global_event_queue ->cancel (_oob_event_id);
659
659
_oob_event_id = 0 ;
660
660
_conn_stat = NSAPI_STATUS_DISCONNECTED;
661
661
}
0 commit comments