|
@ -590,6 +590,7 @@ static void gatts_profile_event_handler(esp_gatts_cb_event_t event, esp_gatt_if_ |
|
|
case ESP_GATTS_STOP_EVT: |
|
|
case ESP_GATTS_STOP_EVT: |
|
|
break; |
|
|
break; |
|
|
case ESP_GATTS_CONNECT_EVT: |
|
|
case ESP_GATTS_CONNECT_EVT: |
|
|
|
|
|
s_module->ble_connect_flag = true; |
|
|
table_conn_id_m = param->connect.conn_id; |
|
|
table_conn_id_m = param->connect.conn_id; |
|
|
table_gatts_if_m = gatts_if; |
|
|
table_gatts_if_m = gatts_if; |
|
|
table_handle_m = spp_handle_table[SPP_IDX_SPP_DATA_NTY_VAL]; |
|
|
table_handle_m = spp_handle_table[SPP_IDX_SPP_DATA_NTY_VAL]; |
|
@ -603,6 +604,7 @@ static void gatts_profile_event_handler(esp_gatts_cb_event_t event, esp_gatt_if_ |
|
|
#endif |
|
|
#endif |
|
|
break; |
|
|
break; |
|
|
case ESP_GATTS_DISCONNECT_EVT: |
|
|
case ESP_GATTS_DISCONNECT_EVT: |
|
|
|
|
|
s_module->ble_connect_flag = false; |
|
|
table_conn_id_m = 0; |
|
|
table_conn_id_m = 0; |
|
|
table_gatts_if_m = 0; |
|
|
table_gatts_if_m = 0; |
|
|
table_handle_m = 0; |
|
|
table_handle_m = 0; |
|
|