@@ -228,25 +228,25 @@ static void esp_spp_cb(esp_spp_cb_event_t event, esp_spp_cb_param_t *param)
228
228
break ;
229
229
230
230
case ESP_SPP_SRV_OPEN_EVT:// Server connection open
231
+ log_i (" ESP_SPP_SRV_OPEN_EVT" );
231
232
if (!_spp_client){
232
233
_spp_client = param->open .handle ;
233
234
} else {
234
235
secondConnectionAttempt = true ;
235
236
esp_spp_disconnect (param->open .handle );
236
237
}
237
238
xEventGroupSetBits (_spp_event_group, SPP_CONNECTED);
238
- log_i (" ESP_SPP_SRV_OPEN_EVT" );
239
239
break ;
240
240
241
241
case ESP_SPP_CLOSE_EVT:// Client connection closed
242
+ log_i (" ESP_SPP_CLOSE_EVT" );
242
243
if (secondConnectionAttempt) {
243
244
secondConnectionAttempt = false ;
244
245
} else {
245
246
_spp_client = 0 ;
246
247
xEventGroupSetBits (_spp_event_group, SPP_DISCONNECTED);
247
248
}
248
249
xEventGroupClearBits (_spp_event_group, SPP_CONNECTED);
249
- log_i (" ESP_SPP_CLOSE_EVT" );
250
250
break ;
251
251
252
252
case ESP_SPP_CONG_EVT:// connection congestion status changed
@@ -290,14 +290,14 @@ static void esp_spp_cb(esp_spp_cb_event_t event, esp_spp_cb_param_t *param)
290
290
}
291
291
break ;
292
292
case ESP_SPP_OPEN_EVT:// Client connection open
293
+ log_i (" ESP_SPP_OPEN_EVT" );
293
294
if (!_spp_client){
294
295
_spp_client = param->open .handle ;
295
296
} else {
296
297
secondConnectionAttempt = true ;
297
298
esp_spp_disconnect (param->open .handle );
298
299
}
299
300
xEventGroupSetBits (_spp_event_group, SPP_CONNECTED);
300
- log_i (" ESP_SPP_OPEN_EVT" );
301
301
break ;
302
302
case ESP_SPP_START_EVT:// server started
303
303
log_i (" ESP_SPP_START_EVT" );
0 commit comments