From ad280d5d8b41d0a665644c1fd71393f815267d86 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Mon, 1 Jul 2013 19:09:06 +0200 Subject: [PATCH] Bridge: added put(..) method with String variant --- hardware/arduino/avr/libraries/Bridge/Bridge.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hardware/arduino/avr/libraries/Bridge/Bridge.h b/hardware/arduino/avr/libraries/Bridge/Bridge.h index 3bc1be8c8..cfbbfa411 100644 --- a/hardware/arduino/avr/libraries/Bridge/Bridge.h +++ b/hardware/arduino/avr/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); }