-
Notifications
You must be signed in to change notification settings - Fork 13.3k
mdns not answer to linux mdns-scan #1978
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
mdns is global and asynchronous service. void setup(){
MDNS.begin(hostname);
MDNS.addService("http","tcp",80);
} If you are using ArduinoOTA, then you should know that MDNS is started by ArduinoOTA and you need to just add the service after you ArduinoOTA.begin() |
I'm not using arduino OTA, do you suggest to remove mdns.update() from loop ? |
Yes, it's sufficient to do |
Ok, now work , but i have to wait dhcp for assigned ip. mdns-scan not work but i see in wireshark answer and linux avahi give to browser correct ip-name resolution. |
Re automatic (re-)start of mDNS, there is an open ticket: #1828. |
ok , i will wait for mdns improveent |
----------------------------- Remove above -----------------------------
Basic Infos
Hardware
Hardware: generic
Core Version: 2.1.0
Description
mdns not answer to linux mdns-scan
mdns.begin is executed after receiving ip from dhcp in sta mode
addService return void so i don't know if it exit because does not addService
(but i suppose it can return error with minor changes).
mdns.update is located in loop.
Settings in IDE
Module: Generic ESP8266 Module
Flash Size: 4MB/3MB
CPU Frequency: 80Mhz
Flash Mode: qio
Flash Frequency: 40Mhz
Upload Using: SERIAL
Reset Method: ck
The text was updated successfully, but these errors were encountered: