Google is committed to advancing racial equity for Black communities. See how.

btgatt_server_interface_t Struct Reference

btgatt_server_interface_t Struct Reference

#include < bt_gatt_server.h >

Data Fields

bt_status_t (*  register_server )( bt_uuid_t *uuid)
 
bt_status_t (*  unregister_server )(int server_if)
 
bt_status_t (*  connect )(int server_if, const bt_bdaddr_t *bd_addr, bool is_direct, int transport)
 
bt_status_t (*  disconnect )(int server_if, const bt_bdaddr_t *bd_addr, int conn_id)
 
bt_status_t (*  add_service )(int server_if, btgatt_srvc_id_t *srvc_id, int num_handles)
 
bt_status_t (*  add_included_service )(int server_if, int service_handle, int included_handle)
 
bt_status_t (*  add_characteristic )(int server_if, int service_handle, bt_uuid_t *uuid, int properties, int permissions)
 
bt_status_t (*  add_descriptor )(int server_if, int service_handle, bt_uuid_t *uuid, int permissions)
 
bt_status_t (*  start_service )(int server_if, int service_handle, int transport)
 
bt_status_t (*  stop_service )(int server_if, int service_handle)
 
bt_status_t (*  delete_service )(int server_if, int service_handle)
 
bt_status_t (*  send_indication )(int server_if, int attribute_handle, int conn_id, int confirm, vector< uint8_t > value)
 
bt_status_t (*  send_response )(int conn_id, int trans_id, int status, btgatt_response_t *response)
 

Detailed Description

Represents the standard BT-GATT server interface.

Definition at line 146 of file bt_gatt_server.h .

Field Documentation

bt_status_t (* add_characteristic)(int server_if, int service_handle, bt_uuid_t *uuid, int properties, int permissions)

Add a characteristic to a service

Definition at line 168 of file bt_gatt_server.h .

bt_status_t (* add_descriptor)(int server_if, int service_handle, bt_uuid_t *uuid, int permissions)

Add a descriptor to a given service

Definition at line 173 of file bt_gatt_server.h .

bt_status_t (* add_included_service)(int server_if, int service_handle, int included_handle)

Assign an included service to it's parent service

Definition at line 165 of file bt_gatt_server.h .

bt_status_t (* add_service)(int server_if, btgatt_srvc_id_t *srvc_id, int num_handles)

Create a new service

Definition at line 162 of file bt_gatt_server.h .

bt_status_t (* connect)(int server_if, const bt_bdaddr_t *bd_addr, bool is_direct, int transport)

Create a connection to a remote peripheral

Definition at line 154 of file bt_gatt_server.h .

bt_status_t (* delete_service)(int server_if, int service_handle)

Delete a local service

Definition at line 184 of file bt_gatt_server.h .

bt_status_t (* disconnect)(int server_if, const bt_bdaddr_t *bd_addr, int conn_id)

Disconnect an established connection or cancel a pending one

Definition at line 158 of file bt_gatt_server.h .

bt_status_t (* register_server)( bt_uuid_t *uuid)

Registers a GATT server application with the stack

Definition at line 148 of file bt_gatt_server.h .

bt_status_t (* send_indication)(int server_if, int attribute_handle, int conn_id, int confirm, vector< uint8_t > value)

Send value indication to a remote device

Definition at line 187 of file bt_gatt_server.h .

bt_status_t (* send_response)(int conn_id, int trans_id, int status, btgatt_response_t *response)

Send a response to a read/write operation

Definition at line 192 of file bt_gatt_server.h .

bt_status_t (* start_service)(int server_if, int service_handle, int transport)

Starts a local service

Definition at line 177 of file bt_gatt_server.h .

bt_status_t (* stop_service)(int server_if, int service_handle)

Stops a local service

Definition at line 181 of file bt_gatt_server.h .

bt_status_t (* unregister_server)(int server_if)

Unregister a server application from the stack

Definition at line 151 of file bt_gatt_server.h .


The documentation for this struct was generated from the following file: