PebbleOS
Loading...
Searching...
No Matches
Data Structures | Functions
hrm_service.h File Reference
#include <stdbool.h>
#include <pbl/bluetooth/types.h>

Data Structures

struct  pbl_bt_hrm_service_measurement
 A heart rate measurement. More...
 

Functions

void pbl_bt_hrm_service_enable (bool enable)
 Add or remove the Heart Rate Service from the GATT database.
 
void pbl_bt_hrm_service_handle_measurement (const struct pbl_bt_hrm_service_measurement *measurement, const struct pbl_bt_device_internal *permitted_devices, size_t num_permitted_devices)
 Send a heart rate measurement to the subscribed devices.
 
void pbl_bt_cb_hrm_service_update_subscription (const struct pbl_bt_device_internal *device, bool is_subscribed)
 Called when a connected device (un)subscribes to the Heart Rate Measurement characteristic.