Exemplo n.º 1
0
void btgatts_connection_cb(int conn_id, int server_if, int connected, bt_bdaddr_t *bda) {
  gatt_connection_id = conn_id;
  for (int i = 0; i < 6; ++i) {
    remote_bd_addr.address[i] = bda->address[i];
  }
  CALLBACK_RET();
}
Exemplo n.º 2
0
void btgatts_included_service_added_cb(int status, int server_if, int srvc_handle, int incl_srvc_handle) {
  gatt_status = status;
  gatt_server_interface = server_if;
  gatt_service_handle = srvc_handle;
  gatt_included_service_handle = incl_srvc_handle;
  CALLBACK_RET();
}
Exemplo n.º 3
0
void btgatts_characteristic_added_cb(int status, int server_if, bt_uuid_t *char_id, int srvc_handle, int char_handle) {
  gatt_status = status;
  gatt_server_interface = server_if;
  gatt_service_handle = srvc_handle;
  gatt_characteristic_handle = char_handle;
  CALLBACK_RET();
}
Exemplo n.º 4
0
void btgatts_descriptor_added_cb(int status, int server_if, bt_uuid_t *descr_id, int srvc_handle, int descr_handle) {
  gatt_status = status;
  gatt_server_interface = server_if;
  gatt_service_handle = srvc_handle;
  gatt_descriptor_handle = descr_handle;
  CALLBACK_RET();
}
Exemplo n.º 5
0
void btgatts_service_deleted_cb(int status, int server_if, int srvc_handle) {
  gatt_status = status;
  gatt_server_interface = server_if;
  gatt_service_handle = srvc_handle;
  CALLBACK_RET();
}
Exemplo n.º 6
0
void btgattc_get_included_service_cb(int conn_id, int status, btgatt_srvc_id_t *srvc_id, btgatt_srvc_id_t *incl_srvc_id) {
  CALLBACK_RET();
}
Exemplo n.º 7
0
static void thread_evt(bt_cb_thread_evt evt) {
  CALLBACK_RET();
}
Exemplo n.º 8
0
void btgatts_request_exec_write_cb(int conn_id, int trans_id, bt_bdaddr_t *bda, int exec_write) {
  CALLBACK_RET();
}
Exemplo n.º 9
0
// GATT client callbacks
void btgattc_register_app_cb(int status, int clientIf, bt_uuid_t *app_uuid) {
  gatt_status = status;
  gatt_client_interface = clientIf;
  CALLBACK_RET();
}
Exemplo n.º 10
0
void btgattc_remote_rssi_cb(int client_if,bt_bdaddr_t* bda, int rssi, int status) {
  CALLBACK_RET();
}
Exemplo n.º 11
0
void btgattc_advertise_cb(int status, int client_if) {
  gatt_status = status;
  gatt_client_interface = client_if;
  CALLBACK_RET();
}
Exemplo n.º 12
0
void btgattc_execute_write_cb(int conn_id, int status) {
  CALLBACK_RET();
}
Exemplo n.º 13
0
void btgattc_write_descriptor_cb(int conn_id, int status, btgatt_write_params_t *p_data) {
  CALLBACK_RET();
}
Exemplo n.º 14
0
void btgattc_write_characteristic_cb(int conn_id, int status, btgatt_write_params_t *p_data) {
  CALLBACK_RET();
}
Exemplo n.º 15
0
void btgattc_notify_cb(int conn_id, btgatt_notify_params_t *p_data) {
  CALLBACK_RET();
}
Exemplo n.º 16
0
void btgattc_register_for_notification_cb(int conn_id, int registered, int status, btgatt_srvc_id_t *srvc_id, btgatt_gatt_id_t *char_id) {
  CALLBACK_RET();
}
Exemplo n.º 17
0
void btgatts_request_read_cb(int conn_id, int trans_id, bt_bdaddr_t *bda, int attr_handle, int offset, bool is_long) {
  CALLBACK_RET();
}
Exemplo n.º 18
0
// GATT server callbacks
void btgatts_register_app_cb(int status, int server_if, bt_uuid_t *uuid) {
  gatt_status = status;
  gatt_server_interface = server_if;
  CALLBACK_RET();
}
Exemplo n.º 19
0
void btgatts_request_write_cb(int conn_id, int trans_id, bt_bdaddr_t *bda, int attr_handle, int offset, int length, bool need_rsp, bool is_prep, uint8_t* value) {
  CALLBACK_RET();
}
Exemplo n.º 20
0
void btgattc_close_cb(int conn_id, int status, int clientIf, bt_bdaddr_t* bda) {
  CALLBACK_RET();
}
Exemplo n.º 21
0
void btgatts_response_confirmation_cb(int status, int handle) {
  CALLBACK_RET();
}
Exemplo n.º 22
0
void btgattc_search_result_cb(int conn_id, btgatt_srvc_id_t *srvc_id) {
  CALLBACK_RET();
}
Exemplo n.º 23
0
void btgattc_scan_result_cb(bt_bdaddr_t* bda, int rssi, uint8_t* adv_data) {
  CALLBACK_RET();
}
Exemplo n.º 24
0
void btgattc_get_descriptor_cb(int conn_id, int status, btgatt_srvc_id_t *srvc_id, btgatt_gatt_id_t *char_id, btgatt_gatt_id_t *descr_id) {
  CALLBACK_RET();
}
Exemplo n.º 25
0
void btgattc_search_complete_cb(int conn_id, int status) {
  CALLBACK_RET();
}
Exemplo n.º 26
0
void btgatts_service_added_cb(int status, int server_if, btgatt_srvc_id_t *srvc_id, int srvc_handle) {
  gatt_status = status;
  gatt_server_interface = server_if;
  gatt_service_handle = srvc_handle;
  CALLBACK_RET();
}
Exemplo n.º 27
0
void btgattc_get_characteristic_cb(int conn_id, int status, btgatt_srvc_id_t *srvc_id, btgatt_gatt_id_t *char_id, int char_prop) {
  CALLBACK_RET();
}
Exemplo n.º 28
0
static void remote_device_properties(bt_status_t status,
                                     bt_bdaddr_t *bd_addr,
                                     int num_properties,
                                     bt_property_t *properties) {
  CALLBACK_RET();
}