[SOLVED] mDNS
Posted: Tue May 07, 2019 10:57 am
Hi eveybody,
I'm testing mDNS component and I have setup it using this simple code:
If I ping from a linux PC I got the below result. Please note "espessif.station"
Where does "espressif.station" come from? I have searched on esp-idf folder and on forum but I'm not able to find it.
How to change it?
Thanks
I'm testing mDNS component and I have setup it using this simple code:
Code: Select all
//initialize mDNS service
esp_err_t err = mdns_init();
if (err)
{
ESP_LOGW(TAG_WIFI, "MDNS Init failed: 0x%X\n", err);
}
else
{
//set hostname
mdns_hostname_set("avior");
//set default instance
mdns_instance_name_set("AVIOR");
}
Code: Select all
ping avior.local
PING avior.local (10.0.0.12) 56(84) bytes of data.
64 bytes from espressif.station (10.0.0.12): icmp_seq=1 ttl=255 time=100 ms
64 bytes from espressif.station (10.0.0.12): icmp_seq=2 ttl=255 time=318 ms
64 bytes from espressif.station (10.0.0.12): icmp_seq=3 ttl=255 time=242 ms
64 bytes from espressif.station (10.0.0.12): icmp_seq=4 ttl=255 time=161 ms
64 bytes from espressif.station (10.0.0.12): icmp_seq=5 ttl=255 time=82.8 ms
64 bytes from espressif.station (10.0.0.12): icmp_seq=6 ttl=255 time=311 ms
^C
--- avior.local ping statistics ---
6 packets transmitted, 6 received, 0% packet loss, time 5006ms
rtt min/avg/max/mdev = 82.871/202.686/318.001/94.113 ms
How to change it?
Thanks