init commit from esp-idf ble example

This commit is contained in:
2025-12-01 00:42:14 +01:00
parent cfcfb6fe37
commit 4116ef780e
17 changed files with 949 additions and 1 deletions

18
main/include/gatt_svc.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef GATT_SVR_H
#define GATT_SVR_H
/* Includes */
/* NimBLE GATT APIs */
#include "host/ble_gatt.h"
#include "services/gatt/ble_svc_gatt.h"
/* NimBLE GAP APIs */
#include "host/ble_gap.h"
/* Public function declarations */
void send_heart_rate_indication(void);
void gatt_svr_register_cb(struct ble_gatt_register_ctxt *ctxt, void *arg);
void gatt_svr_subscribe_cb(struct ble_gap_event *event);
int gatt_svc_init(void);
#endif // GATT_SVR_H