bt_uuid_t *app_uuid);
/** Callback for scan results */
-typedef void (*scan_result_callback)(bt_bdaddr_t* bda, int rssi, uint8_t* adv_data);
+typedef void (*scan_result_callback)(bt_bdaddr_t* bda, uint8_t addr_type, int rssi,
+ uint8_t* adv_data, int adv_dat_len, uint8_t *scan_rsp_data, int scan_rsp_data_len);
/** GATT open callback invoked in response to open */
typedef void (*connect_callback)(int conn_id, int status, int client_if, bt_bdaddr_t* bda);
* Register to receive notifications or indications for a given
* characteristic
*/
- bt_status_t (*register_for_notification)(int client_if,
+ bt_status_t (*register_for_notification)(int conn_id,
const bt_bdaddr_t *bd_addr, btgatt_srvc_id_t *srvc_id,
btgatt_gatt_id_t *char_id);
/** Deregister a previous request for notifications/indications */
- bt_status_t (*deregister_for_notification)(int client_if,
+ bt_status_t (*deregister_for_notification)(int conn_id,
const bt_bdaddr_t *bd_addr, btgatt_srvc_id_t *srvc_id,
btgatt_gatt_id_t *char_id);
/** Test mode interface */
bt_status_t (*test_command)(int command, btgatt_test_params_t* params);
+ /* Get current att mtu size of active connection */
+ bt_status_t (*get_att_mtu)(int conn_id, int *mtu_size);
+
/** MTU Exchange request from client */
bt_status_t (*configure_mtu)(int conn_id, int mtu);
/** Adds a connection info in list */
bt_status_t (*add_connection_info)(const bt_bdaddr_t *bd_addr, int conn_id, int server_inst_id);
+
+ /** Get data batching available packets */
+ bt_status_t (*get_data_batching_available_packets)(unsigned int *available_packets);
+
+ /** Enable data batching */
+ bt_status_t (*enable_data_batching)(const bt_bdaddr_t *bd_addr, int packet_threshold, int timeout);
+
+ /** Disable data batching */
+ bt_status_t (*disable_data_batching)(const bt_bdaddr_t *bd_addr);
} btgatt_client_interface_t;
__END_DECLS