← index #762Issue #11438
Duplicate · high · value 0.173
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 · ISSUE

WebREPL on WIZnet W5500-EVB-Pico

openby detlevoopened 2023-05-06updated 2023-05-06
bug

The a.m. board contains both the webrepl modules (webrepl.py and webrepl_setup.py). I was able to set up webrepl. However, the next time I started the board, webrepl.start() failed because the setup_conn() function expects the network interfaces class network.WLAN to exist (see lines 104ff in webrepl.py). However, on this ethernet based board, no such class exists. It seems webrepl is only meant for WiFi enabled boards.

These are the possible resolutions:

  1. Don't include the 'webrepl' module in the board firmware (i.e. don't include 'bundle-networking' in the boards manifest.py)
  2. Modify webrepl.setup_conn() function such, that it works on this board as well.

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