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 a2a6bd8 commit 1fb442dCopy full SHA for 1fb442d
cores/esp32/IPAddress.cpp
@@ -417,7 +417,7 @@ IPAddress& IPAddress::from_ip_addr_t(const ip_addr_t* addr){
417
return *this;
418
}
419
420
-esp_ip6_addr_type_t IPAddress::addr_type(){
+esp_ip6_addr_type_t IPAddress::addr_type() const {
421
if(_type != IPv6){
422
return ESP_IP6_ADDR_IS_UNKNOWN;
423
cores/esp32/IPAddress.h
@@ -102,7 +102,7 @@ class IPAddress : public Printable {
102
IPAddress(const ip_addr_t *addr);
103
void to_ip_addr_t(ip_addr_t* addr) const;
104
IPAddress& from_ip_addr_t(const ip_addr_t* addr);
105
- esp_ip6_addr_type_t addr_type();
+ esp_ip6_addr_type_t addr_type() const;
106
uint8_t zone() const { return (type() == IPv6)?_zone:0; }
107
size_t printTo(Print& p, bool includeZone) const;
108
0 commit comments