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/gap.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef GAP_SVC_H
#define GAP_SVC_H
/* Includes */
/* NimBLE GAP APIs */
#include "host/ble_gap.h"
#include "services/gap/ble_svc_gap.h"
/* Defines */
#define BLE_GAP_APPEARANCE_GENERIC_TAG 0x0200
#define BLE_GAP_URI_PREFIX_HTTPS 0x17
#define BLE_GAP_LE_ROLE_PERIPHERAL 0x00
/* Public function declarations */
void adv_init(void);
int gap_init(void);
#endif // GAP_SVC_H