atanisoft / ESP32CommandStation

An ESP32 based DCC Command Station with integrated OpenLCB (LCC) --- NOTE: this project is not under active development.
https://atanisoft.github.io/ESP32CommandStation/
GNU General Public License v3.0
90 stars 34 forks source link

mDNS service publish not working #26

Closed atanisoft closed 4 years ago

atanisoft commented 4 years ago

mDNS service publish and discovery appears to not be working as expected:

[WiFi] IP address is 10.0.0.76, starting hub (if enabled) and uplink.
[httpd] Starting HTTP listener on port 80
[mDNS] Advertising _http._tcp:80.
Listening on port 80, fd 48
[HUB] Starting TCP/IP listener on port 12021
Listening on port 12021, fd 49
[mDNS] Advertising _openlcb-can._tcp:12021.
[mDNS] mdns_service_add(_http._tcp:80): ESP_FAIL.
[WiFi] Starting JMRI listener
[mDNS] Advertising _esp32cs._tcp:2560.
[mDNS] Advertising _http._tcp:80.
Listening on port 2560, fd 50
[mDNS] mdns_service_add(_esp32cs._tcp:2560): ESP_OK.
[Nextion] Display of page 2 was not successful.
[mDNS] mdns_service_add(_openlcb-can._tcp:12021): ESP_OK.
[mDNS] mdns_service_add(_http._tcp:80): ESP_OK.

from rPi:

pi@RPi-JMRI:~/openmrn $ avahi-browse -a -t -k
+  wlan0 IPv6 _openlcb-can._tcp                             _openlcb-can._tcp    local
+  wlan0 IPv4 _openlcb-can._tcp                             _openlcb-can._tcp    local
+  wlan0 IPv6 RPI-JMRI                                      _device-info._tcp    local
+  wlan0 IPv4 RPI-JMRI                                      _device-info._tcp    local
+  wlan0 IPv6 RPI-JMRI                                      _smb._tcp            local
+  wlan0 IPv4 RPI-JMRI                                      _smb._tcp            local