ESPectro32 Library
Library for using ESPectro32 board
 All Classes Functions Variables Enumerations Enumerator Pages
Static Public Member Functions | List of all members
GeneralUtils Class Reference

General utilities. More...

#include <GeneralUtils.h>

Static Public Member Functions

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...
 

Detailed Description

General utilities.

Member Function Documentation

bool GeneralUtils::base64Decode ( const std::string &  in,
std::string *  out 
)
static

Decode a chunk of data that is base64 encoded.

Parameters
[in]inThe string to be decoded.
[out]outThe resulting data.
bool GeneralUtils::base64Encode ( const std::string &  in,
std::string *  out 
)
static

Encode a string into base 64.

Parameters
[in]in
[out]out
const char * GeneralUtils::errorToString ( esp_err_t  errCode)
static

Convert an ESP error code to a string.

Parameters
[in]errCodeThe 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]pDataPointer to the start of data to be logged.
[in]lengthLength 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
ipThe 4 byte IP address.
Returns
A string representation of the IP address.

The documentation for this class was generated from the following files: