Pebble protocol over GATT (PPoGATT), a client of the phone's PPoGATT service.
More...
Pebble protocol over GATT (PPoGATT), a client of the phone's PPoGATT service.
The kernel LE client dispatches the GATT events of the service to these functions.
◆ pbl_pp_gatt_characteristic
Characteristics of the PPoGATT service, in discovery order.
| Enumerator |
|---|
| PBL_PP_GATT_CHARACTERISTIC_DATA | |
| PBL_PP_GATT_CHARACTERISTIC_META | |
| PBL_PP_GATT_CHARACTERISTIC_NUM | |
◆ pbl_pp_gatt_can_handle_characteristic()
Check whether a characteristic belongs to a PPoGATT service.
- Parameters
-
| characteristic | Characteristic handle. |
- Returns
- true if the transport handles
characteristic.
◆ pbl_pp_gatt_create()
| void pbl_pp_gatt_create |
( |
void |
| ) |
|
Start, once the Bluetooth stack is up.
◆ pbl_pp_gatt_destroy()
| void pbl_pp_gatt_destroy |
( |
void |
| ) |
|
Stop, closing every session.
◆ pbl_pp_gatt_handle_read_or_notification()
Handle a read response or a notification.
- Parameters
-
| characteristic | Characteristic handle. |
| value | Value read or notified. |
| value_length | Length of value in bytes. |
| error | GATT error, if any. |
◆ pbl_pp_gatt_handle_service_discovered()
Handle a discovered PPoGATT service.
- Parameters
-
◆ pbl_pp_gatt_handle_service_removed()
Handle a removed PPoGATT service.
- Parameters
-
| characteristics | Handles of the removed characteristics. |
| num_characteristics | Number of handles. |
◆ pbl_pp_gatt_handle_subscribe()
Handle a subscription confirmation.
- Parameters
-
| characteristic | Characteristic handle. |
| subscription_type | Subscription now in effect. |
| error | GATT error, if any. |
◆ pbl_pp_gatt_invalidate_all_references()
| void pbl_pp_gatt_invalidate_all_references |
( |
void |
| ) |
|
Forget every characteristic handle, e.g.
on disconnection.
◆ pbl_pp_gatt_reset_disconnect_counter()
| void pbl_pp_gatt_reset_disconnect_counter |
( |
void |
| ) |
|
Clear the count of disconnections caused by repeated resets.
◆ pbl_pp_gatt_characteristic_uuids
◆ pbl_pp_gatt_service_uuid
| const Uuid pbl_pp_gatt_service_uuid |
|
extern |
UUID of the phone's PPoGATT service.