aboutsummaryrefslogtreecommitdiff
path: root/cores/arduino/IPAddress.h
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@arduino.cc>2015-09-18 11:30:45 +0200
committerCristian Maglie <c.maglie@arduino.cc>2015-09-18 11:30:45 +0200
commite42c3ccbdb22dd1544c0d834e381c5966bfe9e69 (patch)
treeade64a8ca680eeefbabb09ebc33d605a123c234a /cores/arduino/IPAddress.h
parentb5911b2bc58e2cee759bd8bcd0c78fdc2d76e5db (diff)
parent5a46ff0b10ff0204e1ccbf5881d8d37afaaf418f (diff)
Merge branch 'ethernet-dns-fix' of https://github.com/cmaglie/Arduino
Diffstat (limited to 'cores/arduino/IPAddress.h')
-rw-r--r--cores/arduino/IPAddress.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/cores/arduino/IPAddress.h b/cores/arduino/IPAddress.h
index 94acdc4..b20ab58 100644
--- a/cores/arduino/IPAddress.h
+++ b/cores/arduino/IPAddress.h
@@ -45,6 +45,9 @@ public:
IPAddress(uint32_t address);
IPAddress(const uint8_t *address);
+ bool fromString(const char *address);
+ bool fromString(const String &address) { return fromString(address.c_str()); }
+
// Overloaded cast operator to allow IPAddress objects to be used where a pointer
// to a four-byte uint8_t array is expected
operator uint32_t() const { return _address.dword; };
@@ -71,5 +74,4 @@ public:
const IPAddress INADDR_NONE(0,0,0,0);
-
#endif