added more examples,

updated readme
made it compile on older versions
This commit is contained in:
Alex Tudorache
2016-02-01 12:34:29 +02:00
parent 6217ef8e6a
commit ba1aa5496d
6 changed files with 135 additions and 31 deletions
+9 -2
View File
@@ -157,8 +157,15 @@ class WiFiManager
template <typename Generic>
void DEBUG_WM(Generic text);
template <class T>
auto optionalIPFromString(T *obj, const char *s) -> decltype( obj->fromString(s) ) {
return obj->fromString(s);
}
auto optionalIPFromString(...) -> bool {
DEBUG_WM("NO fromString METHOD ON IPAddress, you need ESP8266 core 2.1.0 or newer for Custom IP configuration to work.");
return false;
}
};
#endif