Cannot Connect to ESP32 in AP Mode #11293
Unanswered
vonCorax
asked this question in
Using MicroPython
Replies: 1 comment
-
I never use AP mode, however for STA l always do the following: sta_if = network.WLAN(network.STA_IF)
def connect():
sta_if.active(True)
# seems more reliable to start with a fresh connect()
if sta_if.isconnected():
sta_if.disconnect()
print ('started in the connected state, but now disconnected')
else:
print ('started in the disconnected state')
utime.sleep(0.1) Try doing the same with your AP interface and then add the above. Or try this: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've run into a problem setting my ESP32-WROOM-32 to run in AP mode, where my code works with MicroPython v1.17 but not with v1.19.1. (It also fails with v1.18, although I haven't tested this extensively.) My code is as follows:
When I run this code with v1.17 I can connect to the AP using my Android phone (Android 12), but when I try with v1.19.1 my phone spins for about a minute and then reports that it was unable to obtain an IP address. Is this a reportable bug, or am I doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions