Blame android/hardware/bt_gatt_client.h

Packit 34410b
/*
Packit 34410b
 * Copyright (C) 2013 The Android Open Source Project
Packit 34410b
 *
Packit 34410b
 * Licensed under the Apache License, Version 2.0 (the "License");
Packit 34410b
 * you may not use this file except in compliance with the License.
Packit 34410b
 * You may obtain a copy of the License at
Packit 34410b
 *
Packit 34410b
 *      http://www.apache.org/licenses/LICENSE-2.0
Packit 34410b
 *
Packit 34410b
 * Unless required by applicable law or agreed to in writing, software
Packit 34410b
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit 34410b
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit 34410b
 * See the License for the specific language governing permissions and
Packit 34410b
 * limitations under the License.
Packit 34410b
 */
Packit 34410b
Packit 34410b
Packit 34410b
#ifndef ANDROID_INCLUDE_BT_GATT_CLIENT_H
Packit 34410b
#define ANDROID_INCLUDE_BT_GATT_CLIENT_H
Packit 34410b
Packit 34410b
#include <stdint.h>
Packit 34410b
#include "bt_gatt_types.h"
Packit 34410b
Packit 34410b
__BEGIN_DECLS
Packit 34410b
Packit 34410b
/**
Packit 34410b
 * Buffer sizes for maximum attribute length and maximum read/write
Packit 34410b
 * operation buffer size.
Packit 34410b
 */
Packit 34410b
#define BTGATT_MAX_ATTR_LEN 600
Packit 34410b
Packit 34410b
/** Buffer type for unformatted reads/writes */
Packit 34410b
typedef struct
Packit 34410b
{
Packit 34410b
    uint8_t             value[BTGATT_MAX_ATTR_LEN];
Packit 34410b
    uint16_t            len;
Packit 34410b
} btgatt_unformatted_value_t;
Packit 34410b
Packit 34410b
/** Parameters for GATT read operations */
Packit 34410b
typedef struct
Packit 34410b
{
Packit 34410b
    btgatt_srvc_id_t    srvc_id;
Packit 34410b
    btgatt_gatt_id_t    char_id;
Packit 34410b
    btgatt_gatt_id_t    descr_id;
Packit 34410b
    btgatt_unformatted_value_t value;
Packit 34410b
    uint16_t            value_type;
Packit 34410b
    uint8_t             status;
Packit 34410b
} btgatt_read_params_t;
Packit 34410b
Packit 34410b
/** Parameters for GATT write operations */
Packit 34410b
typedef struct
Packit 34410b
{
Packit 34410b
    btgatt_srvc_id_t    srvc_id;
Packit 34410b
    btgatt_gatt_id_t    char_id;
Packit 34410b
    btgatt_gatt_id_t    descr_id;
Packit 34410b
    uint8_t             status;
Packit 34410b
} btgatt_write_params_t;
Packit 34410b
Packit 34410b
/** Attribute change notification parameters */
Packit 34410b
typedef struct
Packit 34410b
{
Packit 34410b
    uint8_t             value[BTGATT_MAX_ATTR_LEN];
Packit 34410b
    bt_bdaddr_t         bda;
Packit 34410b
    btgatt_srvc_id_t    srvc_id;
Packit 34410b
    btgatt_gatt_id_t    char_id;
Packit 34410b
    uint16_t            len;
Packit 34410b
    uint8_t             is_notify;
Packit 34410b
} btgatt_notify_params_t;
Packit 34410b
Packit 34410b
typedef struct
Packit 34410b
{
Packit 34410b
    bt_bdaddr_t        *bda1;
Packit 34410b
    bt_uuid_t          *uuid1;
Packit 34410b
    uint16_t            u1;
Packit 34410b
    uint16_t            u2;
Packit 34410b
    uint16_t            u3;
Packit 34410b
    uint16_t            u4;
Packit 34410b
    uint16_t            u5;
Packit 34410b
} btgatt_test_params_t;
Packit 34410b
Packit 34410b
/** BT-GATT Client callback structure. */
Packit 34410b
Packit 34410b
/** Callback invoked in response to register_client */
Packit 34410b
typedef void (*register_client_callback)(int status, int client_if,
Packit 34410b
                bt_uuid_t *app_uuid);
Packit 34410b
Packit 34410b
/** Callback for scan results */
Packit 34410b
typedef void (*scan_result_callback)(bt_bdaddr_t* bda, int rssi, uint8_t* adv_data);
Packit 34410b
Packit 34410b
/** GATT open callback invoked in response to open */
Packit 34410b
typedef void (*connect_callback)(int conn_id, int status, int client_if, bt_bdaddr_t* bda);
Packit 34410b
Packit 34410b
/** Callback invoked in response to close */
Packit 34410b
typedef void (*disconnect_callback)(int conn_id, int status,
Packit 34410b
                int client_if, bt_bdaddr_t* bda);
Packit 34410b
Packit 34410b
/**
Packit 34410b
 * Invoked in response to search_service when the GATT service search
Packit 34410b
 * has been completed.
Packit 34410b
 */
Packit 34410b
typedef void (*search_complete_callback)(int conn_id, int status);
Packit 34410b
Packit 34410b
/** Reports GATT services on a remote device */
Packit 34410b
typedef void (*search_result_callback)( int conn_id, btgatt_srvc_id_t *srvc_id);
Packit 34410b
Packit 34410b
/** GATT characteristic enumeration result callback */
Packit 34410b
typedef void (*get_characteristic_callback)(int conn_id, int status,
Packit 34410b
                btgatt_srvc_id_t *srvc_id, btgatt_gatt_id_t *char_id,
Packit 34410b
                int char_prop);
Packit 34410b
Packit 34410b
/** GATT descriptor enumeration result callback */
Packit 34410b
typedef void (*get_descriptor_callback)(int conn_id, int status,
Packit 34410b
                btgatt_srvc_id_t *srvc_id, btgatt_gatt_id_t *char_id,
Packit 34410b
                btgatt_gatt_id_t *descr_id);
Packit 34410b
Packit 34410b
/** GATT included service enumeration result callback */
Packit 34410b
typedef void (*get_included_service_callback)(int conn_id, int status,
Packit 34410b
                btgatt_srvc_id_t *srvc_id, btgatt_srvc_id_t *incl_srvc_id);
Packit 34410b
Packit 34410b
/** Callback invoked in response to [de]register_for_notification */
Packit 34410b
typedef void (*register_for_notification_callback)(int conn_id,
Packit 34410b
                int registered, int status, btgatt_srvc_id_t *srvc_id,
Packit 34410b
                btgatt_gatt_id_t *char_id);
Packit 34410b
Packit 34410b
/**
Packit 34410b
 * Remote device notification callback, invoked when a remote device sends
Packit 34410b
 * a notification or indication that a client has registered for.
Packit 34410b
 */
Packit 34410b
typedef void (*notify_callback)(int conn_id, btgatt_notify_params_t *p_data);
Packit 34410b
Packit 34410b
/** Reports result of a GATT read operation */
Packit 34410b
typedef void (*read_characteristic_callback)(int conn_id, int status,
Packit 34410b
                btgatt_read_params_t *p_data);
Packit 34410b
Packit 34410b
/** GATT write characteristic operation callback */
Packit 34410b
typedef void (*write_characteristic_callback)(int conn_id, int status,
Packit 34410b
                btgatt_write_params_t *p_data);
Packit 34410b
Packit 34410b
/** GATT execute prepared write callback */
Packit 34410b
typedef void (*execute_write_callback)(int conn_id, int status);
Packit 34410b
Packit 34410b
/** Callback invoked in response to read_descriptor */
Packit 34410b
typedef void (*read_descriptor_callback)(int conn_id, int status,
Packit 34410b
                btgatt_read_params_t *p_data);
Packit 34410b
Packit 34410b
/** Callback invoked in response to write_descriptor */
Packit 34410b
typedef void (*write_descriptor_callback)(int conn_id, int status,
Packit 34410b
                btgatt_write_params_t *p_data);
Packit 34410b
Packit 34410b
/** Callback triggered in response to read_remote_rssi */
Packit 34410b
typedef void (*read_remote_rssi_callback)(int client_if, bt_bdaddr_t* bda,
Packit 34410b
                                          int rssi, int status);
Packit 34410b
Packit 34410b
/**
Packit 34410b
 * Callback indicating the status of a listen() operation
Packit 34410b
 */
Packit 34410b
typedef void (*listen_callback)(int status, int server_if);
Packit 34410b
Packit 34410b
/** Callback invoked when the MTU for a given connection changes */
Packit 34410b
typedef void (*configure_mtu_callback)(int conn_id, int status, int mtu);
Packit 34410b
Packit 34410b
/** Callback invoked when a scan filter configuration command has completed */
Packit 34410b
typedef void (*scan_filter_cfg_callback)(int action, int client_if, int status, int filt_type,
Packit 34410b
                                         int avbl_space);
Packit 34410b
Packit 34410b
/** Callback invoked when scan param has been added, cleared, or deleted */
Packit 34410b
typedef void (*scan_filter_param_callback)(int action, int client_if, int status,
Packit 34410b
                                         int avbl_space);
Packit 34410b
Packit 34410b
/** Callback invoked when a scan filter configuration command has completed */
Packit 34410b
typedef void (*scan_filter_status_callback)(int enable, int client_if, int status);
Packit 34410b
Packit 34410b
/** Callback invoked when multi-adv enable operation has completed */
Packit 34410b
typedef void (*multi_adv_enable_callback)(int client_if, int status);
Packit 34410b
Packit 34410b
/** Callback invoked when multi-adv param update operation has completed */
Packit 34410b
typedef void (*multi_adv_update_callback)(int client_if, int status);
Packit 34410b
Packit 34410b
/** Callback invoked when multi-adv instance data set operation has completed */
Packit 34410b
typedef void (*multi_adv_data_callback)(int client_if, int status);
Packit 34410b
Packit 34410b
/** Callback invoked when multi-adv disable operation has completed */
Packit 34410b
typedef void (*multi_adv_disable_callback)(int client_if, int status);
Packit 34410b
Packit 34410b
/**
Packit 34410b
 * Callback notifying an application that a remote device connection is currently congested
Packit 34410b
 * and cannot receive any more data. An application should avoid sending more data until
Packit 34410b
 * a further callback is received indicating the congestion status has been cleared.
Packit 34410b
 */
Packit 34410b
typedef void (*congestion_callback)(int conn_id, bool congested);
Packit 34410b
/** Callback invoked when batchscan storage config operation has completed */
Packit 34410b
typedef void (*batchscan_cfg_storage_callback)(int client_if, int status);
Packit 34410b
Packit 34410b
/** Callback invoked when batchscan enable / disable operation has completed */
Packit 34410b
typedef void (*batchscan_enable_disable_callback)(int action, int client_if, int status);
Packit 34410b
Packit 34410b
/** Callback invoked when batchscan reports are obtained */
Packit 34410b
typedef void (*batchscan_reports_callback)(int client_if, int status, int report_format,
Packit 34410b
                                           int num_records, int data_len, uint8_t* rep_data);
Packit 34410b
Packit 34410b
/** Callback invoked when batchscan storage threshold limit is crossed */
Packit 34410b
typedef void (*batchscan_threshold_callback)(int client_if);
Packit 34410b
Packit 34410b
/** Track ADV VSE callback invoked when tracked device is found or lost */
Packit 34410b
typedef void (*track_adv_event_callback)(int client_if, int filt_index, int addr_type,
Packit 34410b
                                             bt_bdaddr_t* bda, int adv_state);
Packit 34410b
Packit 34410b
typedef struct {
Packit 34410b
    register_client_callback            register_client_cb;
Packit 34410b
    scan_result_callback                scan_result_cb;
Packit 34410b
    connect_callback                    open_cb;
Packit 34410b
    disconnect_callback                 close_cb;
Packit 34410b
    search_complete_callback            search_complete_cb;
Packit 34410b
    search_result_callback              search_result_cb;
Packit 34410b
    get_characteristic_callback         get_characteristic_cb;
Packit 34410b
    get_descriptor_callback             get_descriptor_cb;
Packit 34410b
    get_included_service_callback       get_included_service_cb;
Packit 34410b
    register_for_notification_callback  register_for_notification_cb;
Packit 34410b
    notify_callback                     notify_cb;
Packit 34410b
    read_characteristic_callback        read_characteristic_cb;
Packit 34410b
    write_characteristic_callback       write_characteristic_cb;
Packit 34410b
    read_descriptor_callback            read_descriptor_cb;
Packit 34410b
    write_descriptor_callback           write_descriptor_cb;
Packit 34410b
    execute_write_callback              execute_write_cb;
Packit 34410b
    read_remote_rssi_callback           read_remote_rssi_cb;
Packit 34410b
    listen_callback                     listen_cb;
Packit 34410b
    configure_mtu_callback              configure_mtu_cb;
Packit 34410b
    scan_filter_cfg_callback            scan_filter_cfg_cb;
Packit 34410b
    scan_filter_param_callback          scan_filter_param_cb;
Packit 34410b
    scan_filter_status_callback         scan_filter_status_cb;
Packit 34410b
    multi_adv_enable_callback           multi_adv_enable_cb;
Packit 34410b
    multi_adv_update_callback           multi_adv_update_cb;
Packit 34410b
    multi_adv_data_callback             multi_adv_data_cb;
Packit 34410b
    multi_adv_disable_callback          multi_adv_disable_cb;
Packit 34410b
    congestion_callback                 congestion_cb;
Packit 34410b
    batchscan_cfg_storage_callback      batchscan_cfg_storage_cb;
Packit 34410b
    batchscan_enable_disable_callback   batchscan_enb_disable_cb;
Packit 34410b
    batchscan_reports_callback          batchscan_reports_cb;
Packit 34410b
    batchscan_threshold_callback        batchscan_threshold_cb;
Packit 34410b
    track_adv_event_callback            track_adv_event_cb;
Packit 34410b
} btgatt_client_callbacks_t;
Packit 34410b
Packit 34410b
/** Represents the standard BT-GATT client interface. */
Packit 34410b
Packit 34410b
typedef struct {
Packit 34410b
    /** Registers a GATT client application with the stack */
Packit 34410b
    bt_status_t (*register_client)( bt_uuid_t *uuid );
Packit 34410b
Packit 34410b
    /** Unregister a client application from the stack */
Packit 34410b
    bt_status_t (*unregister_client)(int client_if );
Packit 34410b
Packit 34410b
    /** Start or stop LE device scanning */
Packit 34410b
    bt_status_t (*scan)( bool start );
Packit 34410b
Packit 34410b
    /** Create a connection to a remote LE or dual-mode device */
Packit 34410b
    bt_status_t (*connect)( int client_if, const bt_bdaddr_t *bd_addr,
Packit 34410b
                         bool is_direct, int transport );
Packit 34410b
Packit 34410b
    /** Disconnect a remote device or cancel a pending connection */
Packit 34410b
    bt_status_t (*disconnect)( int client_if, const bt_bdaddr_t *bd_addr,
Packit 34410b
                    int conn_id);
Packit 34410b
Packit 34410b
    /** Start or stop advertisements to listen for incoming connections */
Packit 34410b
    bt_status_t (*listen)(int client_if, bool start);
Packit 34410b
Packit 34410b
    /** Clear the attribute cache for a given device */
Packit 34410b
    bt_status_t (*refresh)( int client_if, const bt_bdaddr_t *bd_addr );
Packit 34410b
Packit 34410b
    /**
Packit 34410b
     * Enumerate all GATT services on a connected device.
Packit 34410b
     * Optionally, the results can be filtered for a given UUID.
Packit 34410b
     */
Packit 34410b
    bt_status_t (*search_service)(int conn_id, bt_uuid_t *filter_uuid );
Packit 34410b
Packit 34410b
    /**
Packit 34410b
     * Enumerate included services for a given service.
Packit 34410b
     * Set start_incl_srvc_id to NULL to get the first included service.
Packit 34410b
     */
Packit 34410b
    bt_status_t (*get_included_service)( int conn_id, btgatt_srvc_id_t *srvc_id,
Packit 34410b
                                         btgatt_srvc_id_t *start_incl_srvc_id);
Packit 34410b
Packit 34410b
    /**
Packit 34410b
     * Enumerate characteristics for a given service.
Packit 34410b
     * Set start_char_id to NULL to get the first characteristic.
Packit 34410b
     */
Packit 34410b
    bt_status_t (*get_characteristic)( int conn_id,
Packit 34410b
                    btgatt_srvc_id_t *srvc_id, btgatt_gatt_id_t *start_char_id);
Packit 34410b
Packit 34410b
    /**
Packit 34410b
     * Enumerate descriptors for a given characteristic.
Packit 34410b
     * Set start_descr_id to NULL to get the first descriptor.
Packit 34410b
     */
Packit 34410b
    bt_status_t (*get_descriptor)( int conn_id,
Packit 34410b
                    btgatt_srvc_id_t *srvc_id, btgatt_gatt_id_t *char_id,
Packit 34410b
                    btgatt_gatt_id_t *start_descr_id);
Packit 34410b
Packit 34410b
    /** Read a characteristic on a remote device */
Packit 34410b
    bt_status_t (*read_characteristic)( int conn_id,
Packit 34410b
                    btgatt_srvc_id_t *srvc_id, btgatt_gatt_id_t *char_id,
Packit 34410b
                    int auth_req );
Packit 34410b
Packit 34410b
    /** Write a remote characteristic */
Packit 34410b
    bt_status_t (*write_characteristic)(int conn_id,
Packit 34410b
                    btgatt_srvc_id_t *srvc_id, btgatt_gatt_id_t *char_id,
Packit 34410b
                    int write_type, int len, int auth_req,
Packit 34410b
                    char* p_value);
Packit 34410b
Packit 34410b
    /** Read the descriptor for a given characteristic */
Packit 34410b
    bt_status_t (*read_descriptor)(int conn_id,
Packit 34410b
                    btgatt_srvc_id_t *srvc_id, btgatt_gatt_id_t *char_id,
Packit 34410b
                    btgatt_gatt_id_t *descr_id, int auth_req);
Packit 34410b
Packit 34410b
    /** Write a remote descriptor for a given characteristic */
Packit 34410b
    bt_status_t (*write_descriptor)( int conn_id,
Packit 34410b
                    btgatt_srvc_id_t *srvc_id, btgatt_gatt_id_t *char_id,
Packit 34410b
                    btgatt_gatt_id_t *descr_id, int write_type, int len,
Packit 34410b
                    int auth_req, char* p_value);
Packit 34410b
Packit 34410b
    /** Execute a prepared write operation */
Packit 34410b
    bt_status_t (*execute_write)(int conn_id, int execute);
Packit 34410b
Packit 34410b
    /**
Packit 34410b
     * Register to receive notifications or indications for a given
Packit 34410b
     * characteristic
Packit 34410b
     */
Packit 34410b
    bt_status_t (*register_for_notification)( int client_if,
Packit 34410b
                    const bt_bdaddr_t *bd_addr, btgatt_srvc_id_t *srvc_id,
Packit 34410b
                    btgatt_gatt_id_t *char_id);
Packit 34410b
Packit 34410b
    /** Deregister a previous request for notifications/indications */
Packit 34410b
    bt_status_t (*deregister_for_notification)( int client_if,
Packit 34410b
                    const bt_bdaddr_t *bd_addr, btgatt_srvc_id_t *srvc_id,
Packit 34410b
                    btgatt_gatt_id_t *char_id);
Packit 34410b
Packit 34410b
    /** Request RSSI for a given remote device */
Packit 34410b
    bt_status_t (*read_remote_rssi)( int client_if, const bt_bdaddr_t *bd_addr);
Packit 34410b
Packit 34410b
    /** Setup scan filter params */
Packit 34410b
    bt_status_t (*scan_filter_param_setup)(int client_if, int action, int filt_index, int feat_seln,
Packit 34410b
                                      int list_logic_type, int filt_logic_type, int rssi_high_thres,
Packit 34410b
                                      int rssi_low_thres, int dely_mode, int found_timeout,
Packit 34410b
                                      int lost_timeout, int found_timeout_cnt);
Packit 34410b
Packit 34410b
Packit 34410b
    /** Configure a scan filter condition  */
Packit 34410b
    bt_status_t (*scan_filter_add_remove)(int client_if, int action, int filt_type,
Packit 34410b
                                   int filt_index, int company_id,
Packit 34410b
                                   int company_id_mask, const bt_uuid_t *p_uuid,
Packit 34410b
                                   const bt_uuid_t *p_uuid_mask, const bt_bdaddr_t *bd_addr,
Packit 34410b
                                   char addr_type, int data_len, char* p_data, int mask_len,
Packit 34410b
                                   char* p_mask);
Packit 34410b
Packit 34410b
    /** Clear all scan filter conditions for specific filter index*/
Packit 34410b
    bt_status_t (*scan_filter_clear)(int client_if, int filt_index);
Packit 34410b
Packit 34410b
    /** Enable / disable scan filter feature*/
Packit 34410b
    bt_status_t (*scan_filter_enable)(int client_if, bool enable);
Packit 34410b
Packit 34410b
    /** Determine the type of the remote device (LE, BR/EDR, Dual-mode) */
Packit 34410b
    int (*get_device_type)( const bt_bdaddr_t *bd_addr );
Packit 34410b
Packit 34410b
    /** Set the advertising data or scan response data */
Packit 34410b
    bt_status_t (*set_adv_data)(int client_if, bool set_scan_rsp, bool include_name,
Packit 34410b
                    bool include_txpower, int min_interval, int max_interval, int appearance,
Packit 34410b
                    uint16_t manufacturer_len, char* manufacturer_data,
Packit 34410b
                    uint16_t service_data_len, char* service_data,
Packit 34410b
                    uint16_t service_uuid_len, char* service_uuid);
Packit 34410b
Packit 34410b
    /** Configure the MTU for a given connection */
Packit 34410b
    bt_status_t (*configure_mtu)(int conn_id, int mtu);
Packit 34410b
Packit 34410b
    /** Request a connection parameter update */
Packit 34410b
    bt_status_t (*conn_parameter_update)(const bt_bdaddr_t *bd_addr, int min_interval,
Packit 34410b
                    int max_interval, int latency, int timeout);
Packit 34410b
Packit 34410b
    /** Sets the LE scan interval and window in units of N*0.625 msec */
Packit 34410b
    bt_status_t (*set_scan_parameters)(int scan_interval, int scan_window);
Packit 34410b
Packit 34410b
    /* Setup the parameters as per spec, user manual specified values and enable multi ADV */
Packit 34410b
    bt_status_t (*multi_adv_enable)(int client_if, int min_interval,int max_interval,int adv_type,
Packit 34410b
                 int chnl_map, int tx_power, int timeout_s);
Packit 34410b
Packit 34410b
    /* Update the parameters as per spec, user manual specified values and restart multi ADV */
Packit 34410b
    bt_status_t (*multi_adv_update)(int client_if, int min_interval,int max_interval,int adv_type,
Packit 34410b
                 int chnl_map, int tx_power, int timeout_s);
Packit 34410b
Packit 34410b
    /* Setup the data for the specified instance */
Packit 34410b
    bt_status_t (*multi_adv_set_inst_data)(int client_if, bool set_scan_rsp, bool include_name,
Packit 34410b
                    bool incl_txpower, int appearance, int manufacturer_len,
Packit 34410b
                    char* manufacturer_data, int service_data_len,
Packit 34410b
                    char* service_data, int service_uuid_len, char* service_uuid);
Packit 34410b
Packit 34410b
    /* Disable the multi adv instance */
Packit 34410b
    bt_status_t (*multi_adv_disable)(int client_if);
Packit 34410b
Packit 34410b
    /* Configure the batchscan storage */
Packit 34410b
    bt_status_t (*batchscan_cfg_storage)(int client_if, int batch_scan_full_max,
Packit 34410b
        int batch_scan_trunc_max, int batch_scan_notify_threshold);
Packit 34410b
Packit 34410b
    /* Enable batchscan */
Packit 34410b
    bt_status_t (*batchscan_enb_batch_scan)(int client_if, int scan_mode,
Packit 34410b
        int scan_interval, int scan_window, int addr_type, int discard_rule);
Packit 34410b
Packit 34410b
    /* Disable batchscan */
Packit 34410b
    bt_status_t (*batchscan_dis_batch_scan)(int client_if);
Packit 34410b
Packit 34410b
    /* Read out batchscan reports */
Packit 34410b
    bt_status_t (*batchscan_read_reports)(int client_if, int scan_mode);
Packit 34410b
Packit 34410b
    /** Test mode interface */
Packit 34410b
    bt_status_t (*test_command)( int command, btgatt_test_params_t* params);
Packit 34410b
Packit 34410b
} btgatt_client_interface_t;
Packit 34410b
Packit 34410b
__END_DECLS
Packit 34410b
Packit 34410b
#endif /* ANDROID_INCLUDE_BT_GATT_CLIENT_H */