How to set a dhcp_hostname for a lopy in station mode.



  • I would like to know if it is possible to set the hostname for the lopy in station mode on the home router. OR is there a lib/function that can does that and how do we implement it on a lopy.


  • administrators

    @Andy12 I 100% understand where you're coming from! I run into these issues as well - will keep you updated to any developments - shouldn't be too long as they are already available through the Espressif IDF!



  • @bucknall Thank you. I hope this feature will be implemented soon because:

    1. It is difficult to identify the lopy's hostname eg if 5 of them are connected to the same router.
    2. Socket.getaddrinfo function returns random ip if wlan.ifconfig() is configured with static parameters instead of DHCP.

  • administrators

    Hi @Andy12,

    Currently this isn't possible from our MicroPython Library. This feature (updating the device Hostname) is available through the Espressif IDF so we will be adding it in the near future! Thanks!


Log in to reply
 

Looks like your connection to Pycom Forum was lost, please wait while we try to reconnect.