ArduinoMDNS with arduino UNO wifi rev2

This is the output of the service discovery on Arduino uno wifi rev2:
Attempting to connect to WPA SSID: cortazzone
You're connected to the network192.168.1.100
Enter a mDNS service name via the Arduino Serial Monitor to discover instances
on the network.
Examples are "_http", "_afpovertcp" or "_ssh" (Note the underscores).
Discovering services of type '_http' via Multi-Cast DNS (Bonjour)...
Found: 'Node-RED for htpower' at 0.0.0.0, port 43642 (TCP)
Found: 'DataBoss' at 0.0.0.0, port 43642 (TCP)
Found: 'Node-RED for htlights' at 0.0.0.0, port 43642 (TCP)
Found: 'Node-RED for htgarden' at 0.0.0.0, port 43642 (TCP)
Found: 'Node-RED for htmaster' at 0.0.0.0, port 43642 (TCP)
Found: 'Node-RED for bakery' at 0.0.0.0, port 43642 (TCP)
Found: 'Xerox Phaser 6510 (82:b' at 0.0.0.0, port 43642 (TCP)
Found: 'Node-RED for beaglebone' at 0.0.0.0, port 43642 (TCP)
Finished discovering services of type _http
Discovering services of type '_mqtt' via Multi-Cast DNS (Bonjour)...
Found: 'MQTT for htmaster' at 0.0.0.0, port 43642 (TCP)
Found: 'MQTT for beaglebone' at 0.0.0.0, port 43642 (TCP)
Finished discovering services of type _mqtt

You also have another problem: the port returned for every service is 43642. I doubt one of your nodes is running the HTTP service on the same port as the MQTT service, even if you had configured custom ports.

I currently have the suspicion the ArduinoMDNS library cannot correctly handle compressed data in service description records.

I'll have to investigate further.

Thanks for your very useful work,
all my services are running in the default mode as they come installed in Linux Debian 10.3 and MacOs Ventura. MQTT is provided by Mosquitto, which also provides HTTP service (this is typically used for downloading HTML documents, such as GUI). If ArduinoNDNS cannot handle the interaction with these services is of little use. I'll probably avoid using it.

Attilio

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.