Skip to content

Commit ad280d5

Browse files
committed
Bridge: added put(..) method with String variant
1 parent d4753ee commit ad280d5

File tree

1 file changed

+2
-0
lines changed
  • hardware/arduino/avr/libraries/Bridge

1 file changed

+2
-0
lines changed

hardware/arduino/avr/libraries/Bridge/Bridge.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ class BridgeClass {
2929

3030
// Methods to handle key/value datastore
3131
void put(const char *key, const char *value);
32+
void put(const String &key, const String &value)
33+
{ put(key.c_str(), value.c_str()); }
3234
unsigned int get(const char *key, uint8_t *buff, unsigned int size);
3335
unsigned int get(const char *key, char *value, unsigned int maxlen)
3436
{ get(key, reinterpret_cast<uint8_t *>(value), maxlen); }

0 commit comments

Comments
 (0)