Wi-Fi and cloud setup

Use the EDEXTRON-XXXX setup hotspot to join Wi-Fi and pair the board with your account, or pair over USB serial.

Before you start

  • The ESP32-C3 only works with 2.4 GHz Wi-Fi. Dual-band routers are fine as long as 2.4 GHz is on.
  • Create a pairing code in the dashboard first: Add board → Create pairing code. A code is 4 digits (for example 1234), works once, and expires after 2 minutes. If it runs out, press New pairing code.
  • The board needs internet access on TCP port 443 (to iot.edextron.com) and network time (NTP, UDP port 123). It cannot check the server certificate until it knows the time.

The setup hotspot

The board opens a Wi-Fi hotspot called EDEXTRON-XXXX (XXXX = last four characters of its ID) when:

  • it has no Wi-Fi saved yet (first boot or after a factory reset),
  • it cannot join the saved network,
  • you hold BOOT for 5 seconds and release it,
  • you press WiFi setup on the board's local web page.

While the hotspot is open the LED blinks fast. In firmware 1.1.2 and earlier the hotspot has no password, so finish setup promptly. If Wi-Fi is already saved, the hotspot closes by itself after 5 minutes without activity.

Join Wi-Fi and pair

  1. Join EDEXTRON-XXXX from a phone or computer.
  2. The setup page ("EDEXTRON Setup") opens by itself. If not, go to http://192.168.4.1.
  3. Choose Configure WiFi. Pick your network from the list and type the password.
  4. The MQTT / Home Assistant fields are optional. Leave them empty if you don't use MQTT.
  5. Under EDEXTRON Cloud, paste your code into Pairing code (4 digits). Do this within 2 minutes of creating the code.
  6. Press Save.

The board joins your Wi-Fi, exchanges the code for its own long-term device key, and connects to the cloud. The dashboard shows Your board is online! The pairing code is now used up and cannot be used again.

Leaving the pairing code empty keeps the board's current cloud link. That is what you want when you only change Wi-Fi.

Pair over USB instead

You can also pair without the hotspot, from a serial terminal at 115200 baud (for example pio device monitor, or the Arduino serial monitor). Type a command and press Enter:

Command What it does
pair 1234 Save a pairing code. The board pairs as soon as it has Wi-Fi.
cloud Show the cloud status and whether the board is paired
unpair Forget the cloud link on the board (Wi-Fi stays)

Pairing over serial needs physical USB access, so it is safe to use on shared networks.

Cloud status values

The cloud command, the serial log and the local API (GET /api/state, field cloud.status) report one of:

Status Meaning
off Not paired and no code entered
pairing Exchanging the pairing code
pair_failed Code rejected (wrong, used or expired), or the board belongs to another account
waiting_time Waiting for network time before it can use TLS
connecting Paired; connecting or reconnecting to the cloud
online Connected
low_memory Waiting for enough free memory for a TLS connection
auth_failed The server refused the board's key

If you see pair_failed, create a new code in the dashboard and enter it again. If the serial log says this board is linked to another account - remove it there first, see Factory reset and transfer.

Change Wi-Fi later

Hold BOOT for 5 seconds (the LED flickers very fast), release it, and repeat the steps above with the pairing code empty. The board stays linked to your account.