Access point with MicroPython on RP2040 connect

Can anyone point me to code that makes an access point for the RP2040Connect in
Micropython?

I'm using Thonny, and I'm using the same code that works with my Pico W, but it doesn't
seem to work with the RP2040Connect. It runs with no error, but no access point is created.

Here is the code:

import socket import network

ssid = "RP2040"
password = "12345"

ap = network.WLAN(network.AP_IF)
ap.config(essid=ssid, password=password)
ap.active(True)

while ap.active == False:
pass

print("Access point active")
print(ap.ifconfig())
print(ap.status())

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.