initial commit from esp-idf example

This commit is contained in:
2025-12-01 00:20:43 +01:00
commit 41b90a1cac
13 changed files with 926 additions and 0 deletions

18
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