main/ble_gatts.h

changeset 31
ec5c7794dcd6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main/ble_gatts.h	Mon Apr 17 14:54:35 2023 +0200
@@ -0,0 +1,28 @@
+/**
+ * @file ble_gatts.h
+ * @brief BLE GATTS services.
+ */
+
+#ifndef _BLE_GATTS_H
+#define _BLE_GATTS_H
+
+
+/// Battery Service Attributes Indexes
+enum
+{
+    BAS_IDX_SVC,
+
+    BAS_IDX_BATT_LVL_CHAR,
+    BAS_IDX_BATT_LVL_VAL,
+    BAS_IDX_BATT_LVL_NTF_CFG,
+    BAS_IDX_BATT_LVL_PRES_FMT,
+
+    BAS_IDX_NB,
+};
+
+
+esp_err_t ble_balkon_gatts_register(void);
+esp_err_t ble_balkon_gatts_app_register(void);
+esp_err_t ble_balkon_gatts_set_mtu(void);
+
+#endif

mercurial