diff --git a/cores/esp8266/IPAddress.h b/cores/esp8266/IPAddress.h index b563c7044..4876358fc 100644 --- a/cores/esp8266/IPAddress.h +++ b/cores/esp8266/IPAddress.h @@ -56,6 +56,9 @@ class IPAddress: public Printable { bool operator==(const IPAddress& addr) const { return _address.dword == addr._address.dword; } + bool operator==(uint32_t addr) const { + return _address.dword == addr; + } bool operator==(const uint8_t* addr) const; // Overloaded index operator to allow getting and setting individual octets of the address