https://toitlang.org/ logo
Set hostname
# help
e
Is there currently an easy way to set a custom hostname ? Thank you
f
Currently you need to change the sdkconfig. See https://docs.toit.io/tutorials/misc/custom-envelope. I have it on my Todo list to allow this dynamically.
m
Hi floitsch, I wonder what ithe current status is on this? Can the hostname be changed dynamically, for example by setting "system.hostname" to a new value (and restarting the wifi?).
f
Yes. I'm pretty sure I have implemented that.
https://libs.toit.io/system/library-summary#hostname%3D(1%2C0%2C0%2C)
m
Great! thanks!