Skip to content

Commit 55aaa6f

Browse files
committed
Rename mDNS methods
1 parent c7e63e6 commit 55aaa6f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

libraries/ESPmDNS/examples/mDNS-SD_Extended/mDNS-SD_Extended.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void browseService(const char * service, const char * proto){
7070
Serial.print(": ");
7171
Serial.print(MDNS.hostname(i));
7272
Serial.print(" (");
73-
Serial.print(MDNS.IP(i));
73+
Serial.print(MDNS.address(i));
7474
Serial.print(":");
7575
Serial.print(MDNS.port(i));
7676
Serial.println(")");

libraries/ESPmDNS/src/ESPmDNS.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ String MDNSResponder::hostname(int idx) {
265265
return String(result->hostname);
266266
}
267267

268-
IPAddress MDNSResponder::IP(int idx) {
268+
IPAddress MDNSResponder::address(int idx) {
269269
mdns_result_t * result = _getResult(idx);
270270
if(!result){
271271
log_e("Result %d not found", idx);
@@ -281,7 +281,7 @@ IPAddress MDNSResponder::IP(int idx) {
281281
return IPAddress();
282282
}
283283

284-
IPAddress MDNSResponder::IPv6(int idx) {
284+
IPAddress MDNSResponder::addressV6(int idx) {
285285
mdns_result_t * result = _getResult(idx);
286286
if(!result){
287287
log_e("Result %d not found", idx);

libraries/ESPmDNS/src/ESPmDNS.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ class MDNSResponder {
107107
}
108108

109109
String hostname(int idx);
110-
IPAddress IP(int idx);
111-
IPAddress IPv6(int idx);
110+
IPAddress address(int idx);
111+
IPAddress addressV6(int idx);
112112
uint16_t port(int idx);
113113
int numTxt(int idx);
114114
bool hasTxt(int idx, const char * key);

0 commit comments

Comments
 (0)