summaryrefslogtreecommitdiff
path: root/src/GeneralUtils.h
diff options
context:
space:
mode:
authorNeil Kolban <kolban1@kolban.com>2018-01-17 18:16:31 -0600
committerNeil Kolban <kolban1@kolban.com>2018-01-17 18:16:31 -0600
commit3f5005c383540d07dd16ac044c78d7be28d4aa8e (patch)
treec5236ddbe5c8dd99ad7083dd498110152ad0e9be /src/GeneralUtils.h
parentRemoval of unneeded file (diff)
downloadthermostat-3f5005c383540d07dd16ac044c78d7be28d4aa8e.tar.gz
thermostat-3f5005c383540d07dd16ac044c78d7be28d4aa8e.tar.bz2
thermostat-3f5005c383540d07dd16ac044c78d7be28d4aa8e.zip
0.4.8
Diffstat (limited to 'src/GeneralUtils.h')
-rw-r--r--src/GeneralUtils.h8
1 files changed, 7 insertions, 1 deletions
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 <stdint.h>
#include <string>
#include <esp_err.h>
+#include <algorithm>
+#include <vector>
/**
* @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<std::string> 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_ */