Page 1 of 1

Getting my own hostname from mDNS - how?

Posted: Sun Oct 14, 2018 5:30 pm
by davepl
I would like to register a number of devices with mDNS with the same base name (like MYDEVICE) and have it assign the uniques, like MYDEVICE002 and so on. My understanding is that mDNS will do this.

However, I have no idea how to get the result! I know what I asked for, but what's my hostname when it's assigned? I tried mDNS.hostname(0) but that comes back as a blank string.

So simple, and yet...

Re: Getting my own hostname from mDNS - how?

Posted: Wed Oct 17, 2018 3:32 pm
by davepl
Any ideas?