Open ForestJohnson opened 2 years ago
Sorry for the slow response, I've been busy and didn't check GitHub notifications.
Thanks, mDNS is a very nice to have feature. Unfortunately I don''t use it myself and wouldn't be interested in polishing up and testing the code to have it merged.
If you do clean it up and feel like it's good to be merged let me know; I'm happy to review a PR.
Hello I have forked your app to add mdns support because i needed it for my use case. This means you don't have to know the IP address of the gpsd UDP server as long as that UDP server is advertising a mDNS service discovery record with the service type
_gpsd_.udp.
and the service name equal to its hostname.For example this is the
avahi-daemon
service unit XML file that I created on my server to advertise the GPSd service so the android app can discover it:/etc/avahi/services/gpsd.service
If you are interested in merging this contribution let me know and I might be willing to help you clean it up. Otherwise feel free to pull from my fork:
https://github.com/ForestJohnson/Android-GPSd-Forwarder/commit/fdc1598209c1718843646464d4752c3e568082e6