We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c41c8f0 commit e6670a4Copy full SHA for e6670a4
libraries/ESPmDNS/src/ESPmDNS.cpp
@@ -299,6 +299,16 @@ String MDNSResponder::hostname(int idx) {
299
return String(result->hostname);
300
}
301
302
+String MDNSResponder::instanceName(int idx) {
303
+ mdns_result_t *result = _getResult(idx);
304
+ if (!result) {
305
+ log_e("Result %d not found", idx);
306
+ return String();
307
+ }
308
+ return String(result->instance_name);
309
+}
310
+
311
312
IPAddress MDNSResponder::address(int idx) {
313
mdns_result_t *result = _getResult(idx);
314
if (!result) {
0 commit comments