|
NimBLE-Arduino 2.3.6
|
A BLE Utility class with methods for debugging and general purpose use. More...
#include <NimBLEUtils.h>
Static Public Member Functions | |
| static const char * | gapEventToString (uint8_t eventType) |
| Convert a GAP event type to a string representation. | |
| static std::string | dataToHexString (const uint8_t *source, uint8_t length) |
| Create a hexadecimal string representation of the input data. | |
| static const char * | advTypeToString (uint8_t advType) |
| Convert the advertising type flag to a string. | |
| static const char * | returnCodeToString (int rc) |
| Converts a return code from the NimBLE stack to a text string. | |
| static NimBLEAddress | generateAddr (bool nrpa) |
| Generate a random BLE address. | |
| static bool | taskWait (const NimBLETaskData &taskData, uint32_t timeout) |
| Blocks the calling task until released or timeout. | |
| static void | taskRelease (const NimBLETaskData &taskData, int rc=0) |
| Release a task. | |
A BLE Utility class with methods for debugging and general purpose use.
|
static |
Convert the advertising type flag to a string.
| advType | The type to convert. |
|
static |
Create a hexadecimal string representation of the input data.
| [in] | source | The start of the binary data. |
| [in] | length | The length of the data to convert. |
|
static |
Convert a GAP event type to a string representation.
| [in] | eventType | The type of event. |
|
static |
Generate a random BLE address.
| [in] | nrpa | True to generate a non-resolvable private address, false to generate a random static address |
|
static |
Converts a return code from the NimBLE stack to a text string.
| [in] | rc | The return code to convert. |
|
static |
Release a task.
| [in] | taskData | A pointer to the task data structure. |
| [in] | flags | A return value to set in the task data structure. |
|
static |
Blocks the calling task until released or timeout.
| [in] | taskData | A pointer to the task data structure. |
| [in] | timeout | The time to wait in milliseconds. |