NimBLE-Arduino 2.1.3
Loading...
Searching...
No Matches
ble_svc_ias.h
1
20#ifndef H_BLE_IAS_TPS_
21#define H_BLE_IAS_TPS_
22
23#define BLE_SVC_IAS_UUID16 0x1802
24#define BLE_SVC_IAS_CHR_UUID16_ALERT_LEVEL 0x2a06
25
26/* Alert level definitions */
27#define BLE_SVC_IAS_ALERT_LEVEL_NO_ALERT 0
28#define BLE_SVC_IAS_ALERT_LEVEL_MILD_ALERT 1
29#define BLE_SVC_IAS_ALERT_LEVEL_HIGH_ALERT 2
30
31typedef int ble_svc_ias_event_fn(uint8_t alert_level);
32
33void ble_svc_ias_set_cb(ble_svc_ias_event_fn *cb);
34void ble_svc_ias_init(void);
35
36#endif
37
38