diff options
author | Cristian Maglie <c.maglie@bug.st> | 2013-07-01 19:09:06 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@bug.st> | 2013-07-01 19:12:49 +0200 |
commit | a22033dd5d1b867def45b80d607592bf76cde052 (patch) | |
tree | ac8c6065fcb5aef67babed676d80bd959cae4310 /libraries | |
parent | f3149271af839f8fc1e8f890748e774abac624bb (diff) |
Bridge: added put(..) method with String variant
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); } |