MicroPython web IDE guide: keys and connecting
Without an account, the default is an anonymous board and an anonymous connection, used on the same router as the board. All you need is one REPL key. To use a board from another network, get device keys from remocon.kr or run your own IOSignal server.
What the web IDE is
The IOSignal MicroPython web IDE is a web page for writing and running code on an ESP32 board from a browser. Nothing to install, and the board does not have to stay plugged in over USB. Use it right away on the same router without an account; make the board an account board to use it from other networks too.
A few words first:
- MicroPython: Python that runs on small boards. This IDE supports ESP32, ESP32-C3 and ESP32-S3 boards (the USB setup page flashes MicroPython for you). Other boards such as the Raspberry Pi Pico W are not supported yet.
- REPL: an interactive prompt where each Python line you type answers at once: the screen with
>>>. - IDE: where you write code, save files and run them.
- IOSignal server: a relay server that lets the browser and the board exchange messages across the internet.
The screen has three parts: the board's files on the left, the code editor in the middle, the REPL below.
- 1File list: the files and folders on the board. Click one to open it in the editor; the buttons beside it rename, download and delete.
- 2Editor: edit code. "Save" writes it to the board, "Run" runs the current code on the board, "Stop" stops it.
- 3REPL: the board's Python prompt. Commands you type are answered by the board at once, and the output of code you run shows here too.
- 4Examples: open an example such as blinking an LED in the editor and run it at once. It is written to the board only when you save or run it.
- 5Drag and drop files: drag files from your computer (Explorer, Finder) onto the file list and they are copied as they are into the board folder you are looking at. They go over the internet, no USB cable, and are checked to be identical once uploaded.
The first time, prepare the board over USB (Wi-Fi and keys). After that the board connects without USB whenever it has power. Where it can be used is explained in Where you can use it.
How it differs from other ways
The main difference is the direction of the connection. With the usual tools the computer connects to the board directly; with the web IDE the board connects to a server first, so neither a cable nor router settings are needed. Without an account you use it on the same router; an account board can be used anywhere with internet.
Because the board connects to the IOSignal server on the internet first, your home router needs no port forwarding or other settings. An account board can be reached from outside too.
| USB (Thonny, mpremote) | WebREPL | IOSignal web IDE | |
|---|---|---|---|
| Where | Next to the board (cable) | Same router | Same router (no account), anywhere (account board) |
| Install | An app on the PC | Nothing (browser) | Nothing (browser) |
| First setup | Plug in the board | Turn on WebREPL over USB and set a password | Once on the USB setup page (Wi-Fi, keys) |
| From outside | Not possible | Port forwarding on the router | remocon.kr device keys or your own server (no router settings) |
| Security | Direct cable | Password only, no encryption | End-to-end encryption with the REPL key, a new one-time key per session |
| Uploading files | Yes | Yes | Yes, drag and drop with a SHA-256 check |
| Use as a device in apps | Build it yourself | Build it yourself | Same connection, shows as a card on remocon.kr |
On the other hand it needs the internet and an IOSignal server, and only ESP32-family boards work for now. While the board's code is stuck for a long time (deepsleep, a socket wait without a timeout), the IDE does not answer. time.sleep() is fine.
At a glance
The REPL key exists only in the browser and on the board. The server checks only the two logins (the board's device key, the IDE's login key) to decide whether to deliver messages.
Where you can use it
Without an account, both the board and the IDE connect to the server anonymously. That is the default, and then you use the IDE on the same router as the board (the same public IP).
| Board | Same router as the board | Another network |
|---|---|---|
| Anonymous board (no account, the default) | Works. Pick the board with "Find" | Not in practice. The board ID (starting with ?) changes every time the board reconnects, and "Find" works only on the same router |
| Account board (remocon.kr device key) | Works | Works. Put another device key of the same account in the login field, or sign in to remocon.kr and use remocon.kr/ide (in Korean) |
To use a board from another network (work, outside, mobile data) you need one of these:
- Device keys from remocon.kr: sign up at remocon.kr (in Korean), then get keys (
ID.key) with "장치 추가" (Add device) under "내 장치" (My devices). Put one on the board (USB setup, step 3) and use another in the IDE's login field. The board ID stays fixed, so you type it in from anywhere. For now only remocon.kr members can get device keys. - Run your own IOSignal server: start your own server and register device IDs and keys yourself (server docs). Put your server's address in USB setup and in the IDE's server field.
The keys
Without an account, on the same router, one REPL key is all you need. The device key and the login key in the table below exist only for account boards.
| Key | Form | Kept in | What it does | In the IDE? |
|---|---|---|---|---|
| REPL key | XXXXX-XXXXX-XXXXX-XXXXX-XXXXX or a passphrase | Board /repl.json, and kept by you | Encrypts the REPL and file traffic between IDE and board end to end. The server cannot read it | Always |
| Board device key | ID.key | Board /device.json | The board logs in to the server as an account device. Issued to remocon.kr members | No (the board only) |
| Login key | ID.key | Kept by you | Makes the server treat the IDE as the board owner's account. Issued to remocon.kr members | Only to open an account board from another network |
The login key is the key of another device registered to the board's account. The IDE refuses the board's own device key, because using it would disconnect the board.
Two forms of REPL key
- Generated key
7K3M9-QXRT2-HDWB8-N4CFP-VJ6YZ: the 25 characters that "Make a new key" in USB setup creates. Case and-do not matter, and the easily confused O, I and L are read as 0, 1 and 1. It is the safest, so use this one. - Passphrase: a sentence of 10 or more characters you choose (for example
living room board number 2). Easy to remember, but anyone who can see the connection messages, such as a server operator, can try to guess it, so make it long and hard to guess.
Whichever form you use, the board stores only the converted result (bytes), and the IDE's "Remember key" also stores the result, not the passphrase.
Once: prepare the board (USB)
Connect the board to your computer over USB and open the USB setup page. It uses Web Serial, so open it in Chrome or Edge.
- Flash MicroPython: only if the board does not have MicroPython yet.
- Connect the board: choose the board and the IOSignal package is installed.
- Wi-Fi: choose the Wi-Fi the board will use and enter its password.
- IOSignal connection: choose the server, and whether the board stays anonymous or logs in with a device key (
ID.key). Without an account, leave it anonymous (used on the same router). For an account board, enter the board device key here. - Remote REPL key: make a new key, or enter a key or passphrase you have. Keep a copy with "Copy REPL key". Without a key the remote REPL stays off.
- Save and restart: once the board is online, press "Web IDE →".
If "Remember the key in this browser" is on in step 4, the IDE in the same browser has the REPL key filled in.
Connect with the IDE
Fill in the fields in the top row of the web IDE and press "Connect".
| Field | Value | Notes |
|---|---|---|
| Server | The board's server | Default wss://io.iosignal.net/ws |
| Board ID | The board's CID | On the same router, pick it with "Find". An account board's ID is fixed, so type it in from another network. An anonymous board's ID (starting with ?) changes every time the board reconnects |
| REPL key | The key or passphrase you kept | Always needed |
| Login | Another device's id.key in the same account | See "Do you need a login key?" below. Leave it empty if not needed |
| Remember key | When on, both keys are kept in this browser | When off, only in this tab |
Once connected, the board's files are on the left, the editor in the middle and the REPL below.
Do you need a login key?
An account board's default delivery policy ("same router and me only") refuses anonymous connections from other networks. Log in with a device key of the same account and the server treats you as the owner and delivers.
Things to know
- One place per login key: open two IDE tabs with the same key and the later one disconnects the earlier one.
- One session per board: opening the same board's REPL somewhere else closes the current session.
- A REPL key cannot be recovered: it is not stored on the server. If you lose it, make a new one in step 4 of the USB setup page.
- "The board did not answer": connecting to an account board from another network without logging in ends like this, with a hint to log in. A wrong REPL key or a board that is off gives the same message.