General utilities.
More...
#include <GeneralUtils.h>
|
| static void | hexDump (uint8_t *pData, uint32_t length) |
| | Dump a representation of binary data to the console. More...
|
| |
| static std::string | ipToString (uint8_t *ip) |
| | Convert an IP address to string. More...
|
| |
| static bool | base64Encode (const std::string &in, std::string *out) |
| | Encode a string into base 64. More...
|
| |
| static bool | base64Decode (const std::string &in, std::string *out) |
| | Decode a chunk of data that is base64 encoded. More...
|
| |
| static const char * | errorToString (esp_err_t errCode) |
| | Convert an ESP error code to a string. More...
|
| |
| bool GeneralUtils::base64Decode |
( |
const std::string & |
in, |
|
|
std::string * |
out |
|
) |
| |
|
static |
Decode a chunk of data that is base64 encoded.
- Parameters
-
| [in] | in | The string to be decoded. |
| [out] | out | The resulting data. |
| bool GeneralUtils::base64Encode |
( |
const std::string & |
in, |
|
|
std::string * |
out |
|
) |
| |
|
static |
Encode a string into base 64.
- Parameters
-
| const char * GeneralUtils::errorToString |
( |
esp_err_t |
errCode | ) |
|
|
static |
Convert an ESP error code to a string.
- Parameters
-
| [in] | errCode | The errCode to be converted. |
- Returns
- A string representation of the error code.
| void GeneralUtils::hexDump |
( |
uint8_t * |
pData, |
|
|
uint32_t |
length |
|
) |
| |
|
static |
Dump a representation of binary data to the console.
- Parameters
-
| [in] | pData | Pointer to the start of data to be logged. |
| [in] | length | Length of the data (in bytes) to be logged. |
- Returns
- N/A.
| std::string GeneralUtils::ipToString |
( |
uint8_t * |
ip | ) |
|
|
static |
Convert an IP address to string.
- Parameters
-
- Returns
- A string representation of the IP address.
The documentation for this class was generated from the following files: