9#ifndef COMPONENTS_NIMBLEUTILS_H_
10#define COMPONENTS_NIMBLEUTILS_H_
13#if defined(CONFIG_BT_ENABLED)
15#if defined(CONFIG_NIMBLE_CPP_IDF)
16#include "host/ble_gap.h"
18#include "nimble/nimble/host/include/host/ble_gap.h"
41 static void dumpGapEvent(ble_gap_event *event,
void *arg);
43 static char*
buildHexData(uint8_t* target,
const uint8_t* source, uint8_t length);
A BLE Utility class with methods for debugging and general purpose use.
Definition: NimBLEUtils.h:39
static void dumpGapEvent(ble_gap_event *event, void *arg)
Utility function to log the gap event info.
Definition: NimBLEUtils.cpp:421
static char * buildHexData(uint8_t *target, const uint8_t *source, uint8_t length)
Create a hex representation of data.
Definition: NimBLEUtils.cpp:388
static const char * advTypeToString(uint8_t advType)
Convert the advertising type flag to a string.
Definition: NimBLEUtils.cpp:357
static const char * returnCodeToString(int rc)
Converts a return code from the NimBLE stack to a text string.
Definition: NimBLEUtils.cpp:63
static int checkConnParams(ble_gap_conn_params *params)
A function for checking validity of connection parameters.
Definition: NimBLEUtils.cpp:25
static const char * gapEventToString(uint8_t eventType)
Convert a GAP event type to a string representation.
Definition: NimBLEUtils.cpp:436