circuitpython: QT Py ESP32-S2 Wifi Unknown failure 15 on beta 3

CircuitPython version

Adafruit CircuitPython 8.0.0-beta.3 on 2022-10-20; Adafruit QT Py ESP32S2 with ESP32S2

Code/REPL

import wifi
import socketpool

# Initialize WiFi Pool
pool = socketpool.SocketPool(wifi.radio)

try:
    from secrets import secrets
except ImportError:
    print("Secrets File Import Error")
    raise

# Connect to Wi-Fi
print("\n===============================")
print("Connecting to WiFi...")
while not wifi.radio.ipv4_address:
    try:
        wifi.radio.connect(secrets['ssid'], secrets['password'])
    except ConnectionError as e:
        print("Connection Error:", e)
        print("Retrying in 10 seconds")

print("\nConnected!\n")

Output:

Connecting to WiFi...
Connection Error: Unknown failure 15
Retrying in 10 seconds
Connection Error: Unknown failure 15
Retrying in 10 seconds

Behavior

Should connect to wifi. Throws error 15 instead.

This happens while connected via USB. I’m not using web workflow.

Description

This issue does NOT affect a QT Py S3 running the same code, only affects the QT Py S2. These are the only 2 boards I’ve tried this code on. No idea if other S2 boards are affected by this beta 3 bug yet.

Additional information

Bug found by Tekktrik, I’m only confirming bug exists in my tests on same hardware.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 23 (12 by maintainers)

Most upvoted comments

@DJDevon3 I edited the test script, so it should show an IP address now. But in any case absence of errors is a good thing.