Skip to content

Default settings for Adafruit QT Py ESP32-S3 cant connect to wifi #10914

@jesseadams

Description

@jesseadams

CircuitPython version and board name

Adafruit CircuitPython 10.1.4 on 2026-03-09; Adafruit QT Py ESP32-S3 no psram with ESP32S3
Board ID:adafruit_qtpy_esp32s3_nopsram

Code/REPL

from os import getenv
import ipaddress
import wifi
import socketpool

# Get WiFi details, ensure these are setup in settings.toml
ssid = getenv("CIRCUITPY_WIFI_SSID")
password = getenv("CIRCUITPY_WIFI_PASSWORD")

if None in [ssid, password]:
    raise RuntimeError(
        "WiFi settings are kept in settings.toml, "
        "please add them there. The settings file must contain "
        "'CIRCUITPY_WIFI_SSID', 'CIRCUITPY_WIFI_PASSWORD', "
        "at a minimum."
    )

print()
print("Connecting to WiFi")

#  connect to your SSID
try:
    wifi.radio.connect(ssid, password)
except TypeError:
    print("Could not find WiFi info. Check your settings.toml file!")
    raise

print("Connected to WiFi")

pool = socketpool.SocketPool(wifi.radio)

#  prints MAC address to REPL
print("My MAC addr:", [hex(i) for i in wifi.radio.mac_address])

#  prints IP address to REPL
print(f"My IP address is {wifi.radio.ipv4_address}")

#  pings Google
ipv4 = ipaddress.ip_address("8.8.4.4")
print("Ping google.com: %f ms" % (wifi.radio.ping(ipv4)*1000))

Behavior

Connecting to WiFi
Traceback (most recent call last):
  File "code.py", line 27, in <module>
ConnectionError: Unknown failure 2

It fails to connect to wifi and the board feels hot.

Description

Thanks to BobG on Discord for a fix.

  1. Add the following to boot.py:
import wifi
wifi.radio.tx_power=15
  1. Reset the board
  2. Wifi works!

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    boardNew board or update to a single boardbugespressifapplies to multiple Espressif chipsnetwork

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions