From 3f5005c383540d07dd16ac044c78d7be28d4aa8e Mon Sep 17 00:00:00 2001 From: Neil Kolban Date: Wed, 17 Jan 2018 18:16:31 -0600 Subject: 0.4.8 --- src/GeneralUtils.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/GeneralUtils.h') diff --git a/src/GeneralUtils.h b/src/GeneralUtils.h index 2d55abf..013953d 100644 --- a/src/GeneralUtils.h +++ b/src/GeneralUtils.h @@ -10,6 +10,8 @@ #include #include #include +#include +#include /** * @brief General utilities. @@ -18,11 +20,15 @@ class GeneralUtils { public: static bool base64Decode(const std::string& in, std::string* out); static bool base64Encode(const std::string& in, std::string* out); + static void dumpInfo(); 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(); + static std::vector split(std::string source, char delimiter); + static std::string toLower(std::string& value); + static std::string trim(const std::string& str); + }; #endif /* COMPONENTS_CPP_UTILS_GENERALUTILS_H_ */ -- cgit v1.2.3