Open UncleGrumpy opened 6 months ago
After some investigating, I realize this feature has not yet been enabled on the picow. I saw the get_default_device_name
function an assumed it was used later to set the hostname. In fact this is only used as the default ssid in AP mode if no ssid is supplied.
I'm not sure what setting the hostname means. Do we run mDNS on the Picow?
Sorry, I am referring to the DHCP client hostname, the name that resolves to the assigned IP address.
When there are multiple pico connected to a wireless network, they all request the same hostname ("PicoW") from the DHCP server, so pinging a pico by name will not work, it will only work if you use the assigned IP.
The pico hostname is not currently being set to
atomvm-{MACADDRESS}
as it should be. The hostname is always being set toPicoW
. The same behavior is observed if a hostname is supplied in the wifi config. This is consistent when in STA and STA+AP mode.This situation makes for routing problems if multiple picow are on the same network.