guild icon
Toit
#How to configure static IP using WIFI or ETH
Thread channel in help
wahyudi124
wahyudi124 08/03/2025 04:21 AM
How to configure wifi and ethernet using static ip
floitsch
floitsch 08/03/2025 01:46 PM
Unfortunately, static IP isn't implemented yet: https://github.com/toitlang/toit/blob/9b8301314082e526b35e787ae612e3964bf43bc1/system/extensions/esp32/wifi.toit#L238

Since the network API is used for many providers (ethernet, wifi, cellular, ...), it isn't that easy to implement either...
It's, of course, something that we want to eventually support, but probably not going to happen in the near future.
Program your microcontrollers in a fast and robust high-level language. - toitlang/toit
wahyudi124
wahyudi124 08/03/2025 02:28 PM
can i make custom module for this?
wahyudi124
wahyudi124 08/03/2025 02:28 PM
from system.api ?
wahyudi124
wahyudi124 08/03/2025 02:31 PM
currently i need for 2 interface wifi and eth
floitsch
floitsch 08/03/2025 02:44 PM
hmm. not sure what the easiest approach would be. For short-term hacking, probably just modifying the C code to take a static IP instead of using dhcp.
6 messages in total