mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-27 21:16:50 +03:00
IPAddress allow uint32_t compare
This commit is contained in:
parent
640d0bb65e
commit
7edcda4a0f
@ -56,6 +56,9 @@ class IPAddress: public Printable {
|
|||||||
bool operator==(const IPAddress& addr) const {
|
bool operator==(const IPAddress& addr) const {
|
||||||
return _address.dword == addr._address.dword;
|
return _address.dword == addr._address.dword;
|
||||||
}
|
}
|
||||||
|
bool operator==(uint32_t addr) const {
|
||||||
|
return _address.dword == addr;
|
||||||
|
}
|
||||||
bool operator==(const uint8_t* addr) const;
|
bool operator==(const uint8_t* addr) const;
|
||||||
|
|
||||||
// Overloaded index operator to allow getting and setting individual octets of the address
|
// Overloaded index operator to allow getting and setting individual octets of the address
|
||||||
|
Loading…
x
Reference in New Issue
Block a user