Choose a route you can finish

ESP32-S3-N16R8
Runs one chosen receiver application.

USB data cable
Power, direct setup and recovery.
Computer
USB tools or the matching BLE client.
Wi-Fi phone
Local SoftAP page or matching ESPTouch sender.
2.4 GHz lab router
The network the board must eventually join.
Your goal: choose how to deliver Wi-Fi settings, name what must already be installed, and keep a reachable way back if setup fails.
Before you begin
Recognize the board's native USB socket and have a known data cable. Use a temporary, private 2.4 GHz WPA2-Personal lab network for the radio examples.
This is a planning lesson
You can complete the offline decisions without powering hardware. For a live trial, follow the chosen route's full course: ML-C09, C11, C12 or C13.
Delivery is only the first half
Deliver settings
Sender → chosen transport → receiver application
Join the network
Board as STA → router → valid local IP address
Provisioning means giving a device the settings it needs. A sender supplies them; a transport carries them; the installed receiver application decides how to validate, store and use them.
The second path is Wi-Fi itself. The board becomes a station (STA), joins the target router, and obtains a valid local IP address, its address on that network.
Receipt
The receiver accepted the message.
Saved
The application wrote its settings.
Connected
STA joined and has a valid IP.
Restarted
A fresh start joins without resending.
Local STA+IP does not prove internet access or a working cloud service. Test the intended application separately after the local connection works.
At the desk, choose direct USB
C09 hidden-input tool
Direct serial transfer
C09 MicroPython app
Choose USB when a computer and data cable can reach the board, especially during development or recovery. You can configure the device while reading its redacted status, without first making a radio setup link work.
- Confirm the C09 MicroPython receiver files are installed. A USB socket alone does not create a universal configuration command.
- Close other serial tools, discover the runtime port and use C09's hidden-input computer tool. Keep credentials out of command-line arguments, screenshots and logs.
- Check the current STA link and IP. Restart with BOOT released, then verify a fresh join without sending settings again.
Good fit
A developer's desk, a service bench, or repeated controlled changes with a known computer.
Fallback stays wired
Rediscover the port after reset. Use the installed application's documented clear/reconfigure helper. Escalate to firmware recovery only if the application/runtime cannot be recovered.
This series uses desktop Python and mpremote. Do not assume that a phone browser supports your USB serial workflow.
A local page can guide first setup
Join the setup network
Local HTTP POST form
C11 MicroPython app
SoftAP means the board temporarily hosts a Wi-Fi access point. The phone joins that setup network and opens a local page stored on the board. No provisioning app or internet page is required.
- Confirm the C11 receiver is installed. Read its fresh setup network key and local address from private USB.
- Join the board's setup Wi-Fi. Stay connected despite “No internet,” then open the printed HTTP address manually.
- POST the target router's details through the form. Read the receipt, then check USB for the separate STA+IP result.
The C11 AP has a fresh WPA2 key, but the local form uses HTTP without TLS. Use temporary lab credentials. POST avoids putting secrets in the URL; it does not provide end-to-end encryption.
BLE needs a matching service and client
C12 Bleak client
Write RX; notify TX
C12 MicroPython app
BLE is Bluetooth Low Energy. A GATT service is a documented set of data endpoints. C12 provides its own service and a matching desktop Bleak client; it is not a universal Wi-Fi setup feature of every Bluetooth device.
- Confirm the C12 receiver, supported Bluetooth computer and matching client. Inspect service identifiers and WRITE/NOTIFY properties before sending.
- Subscribe to TX notifications first. Send commands to RX in the documented chunks; let the client reassemble complete replies.
- Distinguish accepted, saved and connected. Then restart and check the saved setup without sending credentials again.
Good fit
The sender can keep its normal Wi-Fi while the separate BLE setup link carries settings. The matching client must be available.
Check the security
C12 does not enforce authenticated link encryption. Use isolated, non-sensitive lab credentials. A BLE connection by itself is not a security guarantee.
SmartConfig has a narrower starting point
Phone on target 2.4 GHz
Encoded Wi-Fi packets
C13 ESP-IDF app
The matching phone sender uses specially encoded Wi-Fi packets. The listening receiver decodes the settings, then joins the router. For C13, the phone must be on the target 2.4 GHz network and the classic ESPTouch sender must match the receiver.
- Confirm the C13 ESP-IDF receiver is installed and in its setup window. It replaces MicroPython; stock MicroPython has no C13 SmartConfig command.
- Use the matching classic sender and isolated lab credentials. Check phone permissions and required packet delivery on the target network.
- Observe credentials received, valid STA+IP and sender acknowledgement separately. C13 bounds setup to 90 seconds; do not retry forever.
C command deliberately clears only its named settings and restarts. That console is not a MicroPython REPL or a USB credential uploader.Classic ESPTouch is not inherently authenticated provisioning. Do not use sensitive production credentials in this training workflow.
Match the application before the transport
ML-C09 / C11 / C12
Course-defined MicroPython apps
schema: 1 · ssid · password
These three examples share a format by design.
ML-C13
Course-defined ESP-IDF app
Application-owned binary settings
A different format. No Python REPL in this firmware.
The storage format belongs to the application. USB, SoftAP and BLE can carry many formats; their names do not specify a filename, a password policy or a clear command.
The C09, C11 and C12 lab file contains exactly schema, ssid and password. Schema is 1; SSID is 1–32 UTF-8 bytes; the lab WPA2 passphrase is 8–63 printable ASCII characters. These labs exclude open networks and enterprise login.
| Choose | Have this sender | Confirm this first |
|---|---|---|
| USB | Computer + data cable | C09 app, correct runtime port |
| SoftAP | Wi-Fi browser | C11 app, setup key + local page |
| BLE | C12 desktop client | C12 service, subscription + version |
| SmartConfig | Matching classic sender | C13 ESP-IDF app, 2.4 GHz path |
Choose from the constraints you can see
Desk development → USB
Computer and cable are already present. C09 is installed. Choose direct USB; verify STA+IP, then restart. Keep the USB application helper as recovery.
First-run phone → SoftAP
The user has Wi-Fi and a browser, but no setup app. C11 is installed. Choose its protected local page; keep technician USB access available.
Keep sender Wi-Fi → BLE
C12 is installed and its desktop client is available. Choose BLE; subscribe before sending. Refresh stale service cache or use USB if discovery fails.
Classic sender ready → ESPTouch
C13 is listening, the matching phone is on target 2.4 GHz and packet delivery is allowed. Choose classic SmartConfig; keep the C13 console reachable.
Use these gates in order
- Receiver: identify the installed application and supported version.
- Sender: confirm the actual computer/app/browser and permissions.
- Network: check the lab's 2.4 GHz path and required transport conditions.
- Recovery: name the reachable interface, specific action and expected state.
A fallback must survive the failure
Stop at the failed layer
Receipt only? Check the router join and IP result.
Retry one known setup path
Check 2.4 GHz, spelling, range and the documented sender.
Use native USB
Close other tools; rediscover the runtime port; read redacted state.
Recover the installed application
MicroPython: course helper. ESP-IDF C13: console C only when running.
Use a bounded retry with one changed condition. Record only the failed layer and redacted state. Never send real credentials to a support chat or erase all flash just because a setup page disappeared.
Keep the runtime-specific USB recovery card available offline.
MicroPython C09 / C11 / C12
Connect native USB, close other tools, find the runtime port and stop the application at REPL. Use that course's named clear/reconfigure helper. It does not erase all application data.
ESP-IDF C13
Use its running native USB console. C clears NVS namespace ml_c13, key wifi, then restarts. If console/app cannot start, get help with the documented firmware recovery; the command cannot fix every storage fault.
After reset or firmware changes, the USB port name may change. Keep BOOT released for normal restart. Use ML-C10 only when firmware recovery is actually needed, with a backup and its explicit erase/flash steps.
Write one complete setup plan
Now work through the six cases in the offline decision practice. Save decision_lab.py to a computer and use Python 3.13+. No hardware or credentials are needed.
python decision_lab.py python decision_lab.py --case desk --route usb --fallback usb-app
The first command lists every scenario. Each answer needs both a route and a reachable fallback. pause is the right route when a required path is missing. PASS confirms the pair; TRY AGAIN explains the failed choice.
Two quick checks
1. BLE says “saved,” but no IP. Is provisioning complete?
2. C13 runs ESP-IDF. Can C09's Python helper clear it?
Answers
1. No. Storage worked; check station join, router and IP.
2. No. Use the installed C13 console workflow, not a different runtime's helper.
Files for this lesson
Practice files
Keep the folder names shown below when saving files. Use these files with the matching steps in this lesson.
Keep your reference
Keep the lesson beside your practice.
Download the PDF to keep the diagrams, commands, and checkpoints close at hand. Return to the first missing observation when a step does not match.
