breadboard
docs

06 · The radios

Wi-Fi, BLE & smart-home radios

The unmodified Espressif stacks run against a virtual ether: Wi-Fi with a sandbox internet behind it, Bluetooth LE, and 802.15.4 for Zigbee and Thread. Sniff all of it.

Bringing Wi-Fi up

At any ESP32 REPL (or in a script in Code):

import network
w = network.WLAN()
w.active(True)          # real RF calibration runs here
w.scan()                # finds the bench's virtual networks
w.connect('BreadboardNet')
w.ifconfig()            # ('192.168.4.2', ...) after the DHCP lease

The bench's ether has three networks: BreadboardNet (channel 1), Workshop-2G (6), and ESP-Lab (11). Joining a WPA2-protected network performs the genuine 4-way handshake (the WPA2 example adds a protected SecureNet to its bench). All four ESP32s speak the same stack, the C6 as a Wi-Fi 6 station.

The sandbox internet

Behind the access point sits a deterministic, fully offline mock of the internet, built into the emulated network core. Its DNS resolver answers for any hostname, and the gateway at 192.168.4.1 dispatches plain HTTP to mock services by path or Host header: /weather (a weather report as JSON), /time (the virtual clock, also answering for any worldtimeapi host), /stocks (mock exchange quotes that tick every 5 seconds of sim time), /api (a cloud dashboard that accepts POST telemetry), /echo, and GET /1000 for a deterministic 1000-byte transfer probe. The internet-connected examples (weather station, stock ticker, TFT dashboard) run entirely against it: reproducible, signed-out, offline.

The packet sniffer

Add the Wi-Fi sniffer in Test (or Ctrl+K → Toggle Wi-Fi packet sniffer) for a Wireshark-style view of every frame the emulated radios put on the air, whatever the wire: 802.11 (probe requests during a scan, auth/assoc, EAPOL messages 1–4 during a WPA2 join, DHCP, ARP, TCP, ESP-NOW), 802.15.4 (Thread MLE, Zigbee joins and ZCL commands), and BLE link-layer PDUs. Click a row for the raw frame breakdown. Watching a connect conversation frame by frame is the best networking lesson the bench offers. Pro accounts can export a capture as a pcap file and open it in real Wireshark.

Two boards, one ether

Put two ESP32s on a bench and they share the radio medium with unique MACs. ESP-NOW frames fly directly between them (watch the glowing packets cross the canvas), and with both joined to the same network, two real IP stacks talk end-to-end: the bundled two-board example runs an HTTP server on one board and a client on the other, every hop a real frame.

Bluetooth LE

The ESP32-C6 ships a live BLE controller driven by MicroPython's ordinary bluetooth module: gap_advertise, gap_scan, gap_connect, GATT service registration and discovery, pairing, and bonding all run over the shared air. The three BLE examples walk the whole arc with two C6 boards: scan, connect & discover; pair & encrypt; and bond, disconnect & reconnect from the stored key with no second pairing exchange. The C6 Inspector's Radios summary shows the BLE state. If the footer shows a Wi-Fi MAC, expand Bluetooth LE to see the device address while BLE is active. Once encryption is active, the BLE row shows encrypted link.

ESP32-H2 uses the same virtual BLE air with ESP-IDF or Arduino applications. The bundled secure peripheral pairs and bonds with a C6 central, brings up link encryption in both controllers, and requires encryption for its GATT value; the acceptance gate writes and reads that value over the encrypted link. The official H2 MicroPython image also exposes the Python bluetooth API.

Zigbee & Thread (802.15.4)

The C6 and H2 run Zigbee and Thread as compiled Arduino firmware: Zigbee coordinators form networks that bulbs, plugs, and sensors join, bind to, and drive with genuine ZCL commands; OpenThread nodes commit an operational dataset, elect a leader, and attach children over MAC-secured MLE, with the full OpenThread CLI live on the serial tab. The smart-home examples mix DevKits (their sketches sit in Code, rebuildable with Compile & upload) with sealed products: the smart bulb hides a real emulated C6 running esp-zigbee firmware, exactly like the SoC inside a store-bought bulb. The H2 examples pair its coordinator with that unchanged C6 bulb and its auto-attaching Thread node with a C6 leader. The C5's stock ESP-IDF OpenThread CLI forms and joins networks with the C6, and its stock Arduino Zigbee light joins and binds to a C6 coordinator. Fixed Arduino radio profiles require the matching compile-service rollout. The Inspector's Radios summary shows the 802.15.4 channel, PAN ID, and short address when available.

Real internet (Pro)

Every board uses Sandbox by default. A signed-in Pro account can switch the project from Sandbox to Real internet in the Wi-Fi section of the Inspector. Consent applies per project. Shared projects start in Sandbox and require your confirmation before enabling Real internet. The firmware's bytes are captured at the virtual gateway and relayed through the secure egress service: TLS is added at the edge, the destination must be on the curated allowlist (echo and IoT services like httpbin.org and io.adafruit.com, plus api.open-meteo.com, worldtimeapi.org, api.github.com and friends), and every request is quota'd (500 a day, 5,000 a month) and audited. Select Missing a site? Request it. in the same panel: an admin reviews every hostname, and approved sites become reachable for all Pro benches.

Select a C6 board to see the Radios summary in the Inspector. Expand Wi-Fi, Bluetooth LE, or 802.15.4 for details such as Wi-Fi handshake progress.