PebbleOS
Loading...
Searching...
No Matches
Typedefs | Functions
gatt_discovery.h File Reference
#include <pbl/bluetooth/types.h>
#include <pbl/bluetooth/gatt_service_types.h>

Typedefs

typedef struct GAPLEConnection GAPLEConnection
 LE connection state kept by the firmware (see comm/ble/gap_le_connection.h).
 
typedef struct GATTServiceNode GATTServiceNode
 List node of a discovered service kept by the firmware.
 

Functions

enum pbl_bt_errno pbl_bt_gatt_start_discovery_range (const GAPLEConnection *connection, const struct pbl_bt_att_handle_range *data)
 Start discovering the services of a peer.
 
enum pbl_bt_errno pbl_bt_gatt_stop_discovery (GAPLEConnection *connection)
 Stop an ongoing discovery.
 
void pbl_bt_gatt_handle_discovery_abandoned (void)
 Notify the stack that a discovery was abandoned.
 
bool pbl_bt_cb_gatt_client_discovery_complete (GAPLEConnection *connection, enum pbl_bt_errno errno)
 Called when a discovery finished.
 
void pbl_bt_cb_gatt_client_discovery_handle_indication (GAPLEConnection *connection, struct pbl_bt_gatt_service *service_discovered, enum pbl_bt_errno error)
 Called for each discovered service.