forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Default settings for Adafruit QT Py ESP32-S3 cant connect to wifi #10914
Copy link
Copy link
Open
Labels
boardNew board or update to a single boardNew board or update to a single boardbugespressifapplies to multiple Espressif chipsapplies to multiple Espressif chipsnetwork
Milestone
Description
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_nopsramCode/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.
- Add the following to boot.py:
import wifi
wifi.radio.tx_power=15- Reset the board
- Wifi works!
Additional information
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
boardNew board or update to a single boardNew board or update to a single boardbugespressifapplies to multiple Espressif chipsapplies to multiple Espressif chipsnetwork