OmEspHelpers
OmUtil.h
1 //
2 // OmUtil.h
3 // OmEspHelpers
4 //
5 // Created by David Van Brink on 11/22/16.
6 // Copyright (c) 2016 omino.com. All rights reserved.
7 //
8 
9 #ifndef __OmUtil__
10 #define __OmUtil__
11 
12 bool omStringEqual(const char *s1, const char *s2, int maxLen = 100);
16 const char *omTime(long long millis, int secondsDecimals = 0);
21 int omStringToInt(const char *s);
25 const char *omIpToString(unsigned long ip, bool flip = false);
27 const char *omIpToString(unsigned char ip[4]);
28 int omHexToInt(const char *s, int digitCount);
29 void omHsvToRgb(unsigned char *hsvIn, unsigned char *rgbOut);
30 void omRgbToHsv(unsigned char *rgbIn, unsigned char *hsvOut);
31 int omMigrate(int x, int dest, int delta);
32 int omPinRange(int x, int low, int high);
33 
34 
35 
36 #endif /* defined(__OmUtil__) */