Thanks, @Robin. Funny, I did a search on the espruino website for "mDNS" and got zero results. Yet that string exists in wifi.getHostname and wifi.setHostname. But I digress...
I inserted that into the code and didn't notice anything happen when I ran mDNS discovery, but I'm at the learning stage. Anyway, I'm guessing that the code will respond only when in access point mode - as a response to network devices looking for a DHCP server. I'm not using it in AP mode - I'm just trying to use zeroconf to discover other devices and to be discovered. So far adding .setHostname() didn't help. I imagine there are other steps I need to accomplish, but I don't know what they are.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks, @Robin. Funny, I did a search on the espruino website for "mDNS" and got zero results. Yet that string exists in wifi.getHostname and wifi.setHostname. But I digress...
I inserted that into the code and didn't notice anything happen when I ran mDNS discovery, but I'm at the learning stage. Anyway, I'm guessing that the code will respond only when in access point mode - as a response to network devices looking for a DHCP server. I'm not using it in AP mode - I'm just trying to use zeroconf to discover other devices and to be discovered. So far adding .setHostname() didn't help. I imagine there are other steps I need to accomplish, but I don't know what they are.