← index #15304Issue #15169
Related · high · value 0.907
QUERY · ISSUE

docs: WLAN module, undocumented methods

openby massimosalaopened 2024-06-19updated 2025-03-03
docs

Documentation URL

https://docs.micropython.org/en/latest/library/network.WLAN.html

Description

MP 1.23 on RP2

My program creates an instance of WiFi client and prints its interface:

nic = WLAN(STA_IF)
print(dir(nic))

Output:

['class', 'IF_AP', 'IF_STA', 'PM_NONE', 'PM_PERFORMANCE', 'PM_POWERSAVE', 'SEC_OPEN', 'SEC_WPA_WPA2', 'active', 'config', 'connect', 'deinit', 'disconnect', 'ifconfig', 'ioctl', 'ipconfig', 'isconnected', 'scan', 'send_ethernet', 'status']

The doc doesn't explain these methods:

  • deinit
  • ioctl
  • send_ethernet

Essential info: is it safe to call deinit() to tear down a WLAN instance and free the resources used by it?


Same questions regarding AP_IF, I suppose.

Code of Conduct

Yes, I agree

CANDIDATE · ISSUE

network: wiznet: send_ethernet

openby massimosalaopened 2024-05-30updated 2024-07-13

Checks

  • I agree to follow the MicroPython Code of Conduct to ensure a safe and respectful space for everyone.

  • I've searched for existing issues and didn't find any that matched.

Documentation URL

https://docs.micropython.org/en/latest/library/network.WIZNET5K.html

Description

The nic instance has also this method: send_ethernet

It is undocumented.

I tried and it works: it permits to send raw ethernet packets on the wire.

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