mdns slow or no response

petermccloud
Posts: 6
Joined: Wed Nov 22, 2017 8:24 pm

mdns slow or no response

Postby petermccloud » Tue Dec 26, 2017 6:03 am

I'm attempting to set up a master ESP32 as a Access Point (AP) that sets up a tcp socket with 4 slaves (Stations), each station is configured slightly differently and I want to use mdns to broadcast the configuration instead of hardcoding it on both the master and slave.

I used the mdns example to configure the hostname, instance and service. However, when I try to resolve the slave's hostname from the master, the hostname is not found.

I connected my laptop (Ubuntu) to the AP, and pinged both the master and one of the slaves. Nothing happens for about 10s, then both the master and slave will respond.

Code: Select all

 PING MASTER.local (192.168.4.1) 56(84) bytes of data.
64 bytes from 192.168.4.1: icmp_seq=1 ttl=255 time=1.97 ms
64 bytes from 192.168.4.1: icmp_seq=2 ttl=255 time=1.95 ms
64 bytes from 192.168.4.1: icmp_seq=3 ttl=255 time=1.92 ms
64 bytes from 192.168.4.1: icmp_seq=4 ttl=255 time=1.89 ms
I tried to up the query time from 1 seconds to 10 seconds on the master node, but the slave hostname does not resolve and the watchdog gets triggered.

Any ideas on how to get mdns working between the two ESP32's? (I'm using ESP-IDF 3.0rc1 and Adafruit Huzzah32 boards). Code for the master and slave is at:
https://github.com/mccloudaero/evpr/tre ... vpr_master
https://github.com/mccloudaero/evpr/tre ... evpr_slave

Who is online

Users browsing this forum: No registered users and 305 guests