circuitpython / web-editor

Online web editor for CircuitPython
https://code.circuitpython.org
MIT License
36 stars 17 forks source link

Support for custom hostname in settings.toml #266

Open jdimpson opened 1 week ago

jdimpson commented 1 week ago

Would like a way to do the equivalent of setting wifi.radio.hostname="newhostname" prior to calling wifi.radio.connect(), but via settings.toml so that the CPy dhcp client requests "newhostname" along with requesting an IP address. This way it would take effect when using web workflow.

I tried assigning to CIRCUITPY_WEB_INSTANCE_NAME but that didn't seem to affect what hostname the dhcp client requests. Presumably something like CIRCUITPY_WIFI_HOSTNAME would be more appropriate.

dhalbert commented 1 week ago

Could you open this in https://github.com/adafruit/circuitpython instead? It's a core CircuitPython issue, not the web editor. Thanks.