From a22033dd5d1b867def45b80d607592bf76cde052 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Mon, 1 Jul 2013 19:09:06 +0200 Subject: Bridge: added put(..) method with String variant --- libraries/Bridge/Bridge.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libraries') 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(value), maxlen); } -- cgit v1.2.3-18-g5258