diff --git a/lib_standalone/Arduino.h b/lib_standalone/Arduino.h index 306a0eb44..83a93a166 100644 --- a/lib_standalone/Arduino.h +++ b/lib_standalone/Arduino.h @@ -24,6 +24,7 @@ #include #include #include +#include #include // for count_if @@ -187,4 +188,6 @@ void yield(void); void setup(void); void loop(void); + + #endif diff --git a/lib_standalone/ESP8266React.h b/lib_standalone/ESP8266React.h index 34552fa01..b19417273 100644 --- a/lib_standalone/ESP8266React.h +++ b/lib_standalone/ESP8266React.h @@ -63,6 +63,7 @@ class DummySettings { String jwtSecret = "ems-esp"; String ssid = "ems-esp"; String password = "ems-esp"; + String bssid = ""; String localIP = ""; String gatewayIP = ""; String subnetMask = ""; diff --git a/lib_standalone/Preferences.h b/lib_standalone/Preferences.h index eb365246e..914c9b769 100644 --- a/lib_standalone/Preferences.h +++ b/lib_standalone/Preferences.h @@ -45,6 +45,20 @@ class Preferences { return NAN; } + size_t putString(const char * key, const char * value) { + return 0; + } + size_t putString(const char * key, String value) { + return 0; + } + + size_t getString(const char * key, char * value, size_t maxLen) { + return 0; + } + String getString(const char * key, String defaultValue = String()) { + return ""; + } + // unused // void end(); @@ -59,8 +73,7 @@ class Preferences { // size_t putULong64(const char * key, uint64_t value); // size_t putFloat(const char * key, float_t value); // size_t putBool(const char * key, bool value); - // size_t putString(const char * key, const char * value); - // size_t putString(const char * key, String value); + // size_t putBytes(const char * key, const void * value, size_t len); // bool isKey(const char * key); // PreferenceType getType(const char * key); @@ -75,8 +88,6 @@ class Preferences { // uint64_t getULong64(const char * key, uint64_t defaultValue = 0); // float_t getFloat(const char * key, float_t defaultValue = NAN); // bool getBool(const char * key, bool defaultValue = false); - // size_t getString(const char * key, char * value, size_t maxLen); - // String getString(const char * key, String defaultValue = String()); // size_t getBytesLength(const char * key); // size_t getBytes(const char * key, void * buf, size_t maxLen); // size_t freeEntries();