示例#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();
}
示例#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();
}
示例#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();
}
示例#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();
}
示例#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();
}
示例#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();
}
示例#7
0
static void thread_evt(bt_cb_thread_evt evt) {
  CALLBACK_RET();
}
示例#8
0
void btgatts_request_exec_write_cb(int conn_id, int trans_id, bt_bdaddr_t *bda, int exec_write) {
  CALLBACK_RET();
}
示例#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();
}
示例#10
0
void btgattc_remote_rssi_cb(int client_if,bt_bdaddr_t* bda, int rssi, int status) {
  CALLBACK_RET();
}
示例#11
0
void btgattc_advertise_cb(int status, int client_if) {
  gatt_status = status;
  gatt_client_interface = client_if;
  CALLBACK_RET();
}
示例#12
0
void btgattc_execute_write_cb(int conn_id, int status) {
  CALLBACK_RET();
}
示例#13
0
void btgattc_write_descriptor_cb(int conn_id, int status, btgatt_write_params_t *p_data) {
  CALLBACK_RET();
}
示例#14
0
void btgattc_write_characteristic_cb(int conn_id, int status, btgatt_write_params_t *p_data) {
  CALLBACK_RET();
}
示例#15
0
void btgattc_notify_cb(int conn_id, btgatt_notify_params_t *p_data) {
  CALLBACK_RET();
}
示例#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();
}
示例#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();
}
示例#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();
}
示例#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();
}
示例#20
0
void btgattc_close_cb(int conn_id, int status, int clientIf, bt_bdaddr_t* bda) {
  CALLBACK_RET();
}
示例#21
0
void btgatts_response_confirmation_cb(int status, int handle) {
  CALLBACK_RET();
}
示例#22
0
void btgattc_search_result_cb(int conn_id, btgatt_srvc_id_t *srvc_id) {
  CALLBACK_RET();
}
示例#23
0
void btgattc_scan_result_cb(bt_bdaddr_t* bda, int rssi, uint8_t* adv_data) {
  CALLBACK_RET();
}
示例#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();
}
示例#25
0
void btgattc_search_complete_cb(int conn_id, int status) {
  CALLBACK_RET();
}
示例#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();
}
示例#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();
}
示例#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();
}