Setup WiFi Credentials

PyLeap depends on adding WiFi credentials to detect Adafruit devices over WiFi. 

Create a file with the name settings.toml in the root directory of the CIRCUITPY drive.

Add the following below:

The file contains the keys CIRCUITPY_WIFI_SSID and CIRCUITPY_WIFI_PASSWORD. Once these are defined, CircuitPython will automatically connect to the network and start the webserver used for the workflow.

The web server is on port 80 unless overridden by CIRCUITPY_WEB_API_PORT. It also enables MDNS.

Here is an example settings.toml:

# To auto-connect to Wi-Fi
CIRCUITPY_WIFI_SSID="YOUR-WIFI-NETWORK-NAME"
CIRCUITPY_WIFI_PASSWORD="YOUR-WIFI-NETWORK-PASSWORD"

# To enable modifying files from the web. Change this too!
# Leave the User field blank in the browser.
CIRCUITPY_WEB_API_PASSWORD="passw0rd"

CIRCUITPY_WEB_API_PORT=80

Drag the settings.toml file to the CIRCUITPY drive.

After this step - Disconnect your device from your computer and power it via LiPoly or AAA battery pack.

Open the PyLeap app. Select WiFi and scan for Adafruit devices.

After seeing the spinning Blinka animation, you should see a screen with WiFi devices found. Once you've found your device in the peripheral device list, press the Connect button to continue.

If WiFi devices were not found, either rescan for WiFi devices or double check your WiFi credentials.

This guide was first published on Dec 08, 2021. It was last updated on May 15, 2024.

This page (WiFi Pairing) was last updated on Mar 08, 2024.

Text editor powered by tinymce.