We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55aaa6f commit c4f366cCopy full SHA for c4f366c
cores/esp32/IPAddress.cpp
@@ -374,7 +374,7 @@ size_t IPAddress::printTo(Print& p) const
374
return n;
375
}
376
377
-void IPAddress::to_ip_addr_t(ip_addr_t* addr){
+void IPAddress::to_ip_addr_t(ip_addr_t* addr) const {
378
if(_type == IPv6){
379
addr->type = IPADDR_TYPE_V6;
380
addr->u_addr.ip6.addr[0] = _address.dword[0];
cores/esp32/IPAddress.h
@@ -100,7 +100,7 @@ class IPAddress : public Printable {
100
uint8_t zone() const { return (type() == IPv6)?_zone:0; }
101
102
// LwIP conversions
103
- void to_ip_addr_t(ip_addr_t* addr);
+ void to_ip_addr_t(ip_addr_t* addr) const;
104
IPAddress& from_ip_addr_t(ip_addr_t* addr);
105
106
friend class UDP;
0 commit comments