nimble WIP - add advertising boilerplate

This commit is contained in:
geeksville
2020-07-22 09:51:57 -07:00
parent 102085808f
commit 7f6dc104f0
8 changed files with 425 additions and 25 deletions

23
src/nimble/NimbleDefs.h Normal file
View File

@@ -0,0 +1,23 @@
#pragma once
#include "esp_nimble_hci.h"
#include "host/ble_hs.h"
#include "host/ble_uuid.h"
#include "nimble/nimble_port.h"
#include "nimble/nimble_port_freertos.h"
#ifdef __cplusplus
extern "C" {
#endif
int toradio_callback(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt *ctxt, void *arg);
int fromradio_callback(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt *ctxt, void *arg);
int fromnum_callback(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt *ctxt, void *arg);
extern const struct ble_gatt_svc_def gatt_svr_svcs[];
#ifdef __cplusplus
};
#endif