bt_gatt_client_s *client_s;
bt_gatt_connection_state_changed_cb cb = NULL;
- const GSList *server_list = NULL;
- bt_gatt_server_s *server = NULL;
-
- server_list = _bt_gatt_get_server_list();
- if (server_list)
- server = (bt_gatt_server_s *)server_list->data;
-
BT_INFO("BLUETOOTH_EVENT_GATT_CLIENT_DISCONNECTED");
_bt_convert_address_to_string(&device_addr,
(bluetooth_device_address_t *)(param->param_data));
/* TDS Seeker */
_bt_tds_update_seeker_connection_state_changed(param->result, device_addr, FALSE);
- // TOOD: now this logic is required. but in the future, we need to remove
- /* Handle Client disconnection event in case of Server */
- if (server && server->server_connection_change_cb)
- server->server_connection_change_cb(_bt_get_error_code(param->result), FALSE, device_addr,
- server->connection_change_user_data);
-
/* This callback is from bt_gatt_set_connection_state_changed_cb */
if (event_index >= 0)
cb = bt_event_slot_container[event_index].callback;