← index #762PR #920
Duplicate · high · value 7.154
QUERY · ISSUE

webrepl: Support LAN as well as WLAN boards.

openby jimmoopened 2023-11-01updated 2023-11-01

When webrepl starts, it prints out the IP address to stdout, however it does this by querying the network.WLAN object -- https://github.com/micropython/micropython-lib/blob/master/micropython/net/webrepl/webrepl.py#L105

This should also try network.LAN (and not fail if network.LAN xor network.WLAN are unavailable).

CANDIDATE · PULL REQUEST

webrepl: Support LAN as well as WLAN boards.

openby Romaric-RILLETopened 2024-09-05updated 2024-11-11

When webrepl starts, it prints out the IP address, however it does this by querying the network.WLAN object.
This fail for board with an Ethernet interface but no WiFi interface.
We try both type of interface (and print error if none exist)

Fix #762

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