mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
Add clear method to IPAddress (#7586)
This commit is contained in:
parent
08f170510d
commit
a460cb7935
@ -183,6 +183,10 @@ bool IPAddress::isValid(const char* arg) {
|
|||||||
const IPAddress INADDR_ANY; // generic "0.0.0.0" for IPv4 & IPv6
|
const IPAddress INADDR_ANY; // generic "0.0.0.0" for IPv4 & IPv6
|
||||||
const IPAddress INADDR_NONE(255,255,255,255);
|
const IPAddress INADDR_NONE(255,255,255,255);
|
||||||
|
|
||||||
|
void IPAddress::clear() {
|
||||||
|
(*this) = INADDR_ANY;
|
||||||
|
}
|
||||||
|
|
||||||
/**************************************/
|
/**************************************/
|
||||||
|
|
||||||
#if LWIP_IPV6
|
#if LWIP_IPV6
|
||||||
|
@ -125,6 +125,8 @@ class IPAddress: public Printable {
|
|||||||
virtual size_t printTo(Print& p) const;
|
virtual size_t printTo(Print& p) const;
|
||||||
String toString() const;
|
String toString() const;
|
||||||
|
|
||||||
|
void clear();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
check if input string(arg) is a valid IPV4 address or not.
|
check if input string(arg) is a valid IPV4 address or not.
|
||||||
return true on valid.
|
return true on valid.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user