← index #3683Issue #5043
Related · high · value 1.317
QUERY · ISSUE

IPv6 Support in micropython for ESP32 (or anything for that matter)

openby owendelongopened 2018-03-26updated 2026-01-25
port-esp32

It looks like LWIP in the ESP-IDF being used for micropython has IPv6 support.

Is there an effort to take advantage of the yet? I found some documentation which stated that IPv6 support was "port" dependent, but I have yet to find any port of micropython with IPv6 support enabled.

It looks like the current build has IPv6 capabilities in the usocket module, but it looks like there are no IPv6 capabilities in the network or WLAN class implementations which means that the interface can't get an IPv6 address, etc.

I'm willing to put some effort into trying to do the needful, but the existing API seems to be so thoroughly incapable of understanding that there could possibly be any protocol other than IPv4 that I'm unsure how to go about providing a mergeable codebase that wouldn't break people's existing code.

Further, I'd like to know if there are any standard APIs for IPv6 interface configuration that I should be following as the existing interface configuration capabilities in the ESP32 port are quite thoroughly incapable of such.

Any pointers (or ideally a solution already developed) greatly appreciated.

CANDIDATE · ISSUE

No LAN.config method on ESP32

closedby paco3346opened 2019-08-24updated 2019-08-28
port-esp32

Looking at the LAN implementation on the ESP32 there's no config method (as seen on other ports such as the STM32. I know micropython doesn't actually provide an abstract class (see http://docs.micropython.org/en/v1.9.3/pyboard/library/network.html#network.config) but this seems like something that would be useful.

Compare https://github.com/micropython/micropython/blob/5801a003f055a9db6d569fbb0ffc3018dcaa8c3e/ports/esp32/network_lan.c#L204-L209
and
https://github.com/micropython/micropython/blob/e61862d063b7a19f5baba8e0d1234d648826a616/ports/stm32/network_lan.c#L148-L154

Specifically, I'm trying to get the mac of a wired interface on an ESP32

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied