diff options
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/Bridge/Bridge.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libraries/Bridge/Bridge.h b/libraries/Bridge/Bridge.h index 3bc1be8..cfbbfa4 100644 --- a/libraries/Bridge/Bridge.h +++ b/libraries/Bridge/Bridge.h @@ -29,6 +29,8 @@ public: // Methods to handle key/value datastore void put(const char *key, const char *value); + void put(const String &key, const String &value) + { put(key.c_str(), value.c_str()); } unsigned int get(const char *key, uint8_t *buff, unsigned int size); unsigned int get(const char *key, char *value, unsigned int maxlen) { get(key, reinterpret_cast<uint8_t *>(value), maxlen); } |