Connecting over WiFi
Once a board is set up, the editor can reach it over WiFi instead of USB. Deploy, the console, Check status and inject clicks all work the same way.
What you need
- A board with WiFi, running Thingstudio runtime 3.0.0 or later. Plain Raspberry Pi Pico and Pico 2 boards have no WiFi.
- A flow on the board that uses WiFi and has joined your network. The board is only reachable while that flow is running. It starts again by itself after a reset.
- A board password, set over USB.
- This computer on the same network as the board.
- On a Mac, Thingstudio started from Apple's Terminal app. See If it doesn't connect.
Set the password and name
- Connect the board over USB.
- Click Board settings…. The top line names the board it will change: its chip, USB port and current name.
- Enter a network name and a password of 8 to 64 characters, then click Save to board.
The name and password are stored on the board, not in the flow. The editor also remembers the password on this computer. A board with no password only accepts USB.
A new name is used from the next time the board joins WiFi. Reset the board to use it straight away.
Connect
Click ⟳ ports. Boards on your network appear in the port menu under WiFi. Pick one and click Connect.
If the board isn't listed, choose WiFi address… and type its name (for example kitchen or kitchen.local)
or its IP address.
If this computer has no saved password for the board, the editor asks for it.
A board with no password is listed as no password set. It won't accept a WiFi connection until you set one.
Good to know
- Only one editor can connect over WiFi at a time.
- Board settings can only be changed over USB.
- Installing the runtime and Remove flow… need USB.
- If the board loses power or leaves WiFi range, the editor shows it disconnected within about 30 seconds.
- Deploying a flow that doesn't use WiFi takes the board off the network at its next reset.
- The password is never sent over the network, but the connection isn't encrypted. Use it on a network you trust.
If it doesn't connect
The console says what went wrong:
- No route to host (Mac): macOS is blocking local network access. The first time Thingstudio reaches for the
network, macOS asks whether it may find devices on your local network: choose Allow, then click
Connect again (the attempt that raised the question can fail). If you chose Don't Allow, turn
thingstudio-python on in System Settings > Privacy & Security > Local Network, then restart Thingstudio.
Running from source (
thingstudio-backend), macOS may block it without asking: start it from Apple's Terminal app instead, which macOS always allows. - No answer: check the board is on, its flow has joined WiFi, and this computer is on the
same network. If a
.localname doesn't work, try the IP address, shown in the console when you connect over USB. - Wrong password: the editor asks again. To change it, connect over USB and use Board settings….
- Already has a network session: another editor is connected. Disconnect it first.
- No password set or Connection refused: the board has no password, so it only accepts USB. Set one over USB in Board settings…, then click ⟳ ports.
- Board not listed: click ⟳ ports again. If it's still missing, check its flow has joined WiFi, or use WiFi address…. If the console says the WiFi scan didn't run, the reason follows; on a Mac it's usually the Local Network permission (see No route to host above).