Mon, 17 Apr 2023 14:54:35 +0200
Added basic BLE code.
31 | 1 | /** |
2 | * @file ble_gatts.h | |
3 | * @brief BLE GATTS services. | |
4 | */ | |
5 | ||
6 | #ifndef _BLE_GATTS_H | |
7 | #define _BLE_GATTS_H | |
8 | ||
9 | ||
10 | /// Battery Service Attributes Indexes | |
11 | enum | |
12 | { | |
13 | BAS_IDX_SVC, | |
14 | ||
15 | BAS_IDX_BATT_LVL_CHAR, | |
16 | BAS_IDX_BATT_LVL_VAL, | |
17 | BAS_IDX_BATT_LVL_NTF_CFG, | |
18 | BAS_IDX_BATT_LVL_PRES_FMT, | |
19 | ||
20 | BAS_IDX_NB, | |
21 | }; | |
22 | ||
23 | ||
24 | esp_err_t ble_balkon_gatts_register(void); | |
25 | esp_err_t ble_balkon_gatts_app_register(void); | |
26 | esp_err_t ble_balkon_gatts_set_mtu(void); | |
27 | ||
28 | #endif |