Skip to content

Commit 7edcda4

Browse files
committed
IPAddress allow uint32_t compare
1 parent 640d0bb commit 7edcda4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cores/esp8266/IPAddress.h

+3
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ class IPAddress: public Printable {
5656
bool operator==(const IPAddress& addr) const {
5757
return _address.dword == addr._address.dword;
5858
}
59+
bool operator==(uint32_t addr) const {
60+
return _address.dword == addr;
61+
}
5962
bool operator==(const uint8_t* addr) const;
6063

6164
// Overloaded index operator to allow getting and setting individual octets of the address

0 commit comments

Comments
 (0)