blob: 2d55abfc046d20568c445e587811ce0da4229620 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#ifndef COMPONENTS_CPP_UTILS_GENERALUTILS_H_ #define COMPONENTS_CPP_UTILS_GENERALUTILS_H_ #include <stdint.h> #include <string> #include <esp_err.h>
class GeneralUtils { public: static bool base64Decode(const std::string& in, std::string* out); static bool base64Encode(const std::string& in, std::string* out); static bool endsWith(std::string str, char c); static const char* errorToString(esp_err_t errCode); static void hexDump(const uint8_t* pData, uint32_t length); static std::string ipToString(uint8_t* ip); static void restart(); }; #endif
|