Most problems show up in one of three places: the red marks in the editor and Compiler output, the Serial monitor, and the Network log. Wiring problems are listed on the part cards.
The sketch does not compile
| Message | What to do |
|---|---|
… was not declared in this scope | A typo, a missing #include, or a variable declared inside another function. |
fatal error: XYZ.h: No such file or directory | The library is not available: see the list of libraries. |
A message naming ESP8266WiFi.h or WiFi.h | The header belongs to the other chip family: choose the matching board, or use the header the message names. |
| Too many compiles | At most 5 compilations per minute: wait a moment. |
| Compilation stopped: it took longer than 60 s | Very large sketches or tables; try again, or make it smaller. |
The board runs but nothing happens
- The part has no power: its card says so and the Diagram shows no power. Connect VCC and GND.
- Wrong pin: the GPIO in the sketch is not the one on the part card. The pin map in the board panel shows which part is on which pin.
- Input-only pin (GPIO 34–39 on ESP32) used as an output: the serial monitor warns once; choose another pin.
- Analog value is always 0 on ESP32 while Wi-Fi is on: the pin is on ADC2. Use an ADC1 pin (GPIO 32–39 on the DevKit).
- I2C part not found: check its address in the sketch against the part card, that SDA and SCL are connected, and run
i2c_scanner.ino. Two parts at the same address are an error on the card. - Button reads the wrong way: the simulator's push button connects the pin to GND; use
INPUT_PULLUPand check forLOW.
MQTT does not connect
| In the serial monitor | Meaning |
|---|---|
state 5 / not authorised | Wrong access token, or the topic does not contain it. Use 📟 Devices → Token only to fill it in. |
state -2 / connection failed | The broker has no WebSocket address in Settings, or cannot be reached. The Network log names the address tried. |
| Connects, then drops | mqtt.loop() is not called often enough, or two boards use the same client ID. |
| Messages larger than 256 bytes vanish | The PubSubClient buffer: call mqtt.setBufferSize(1024) before connecting. |
The device on IoT Platform stays offline while the board is not connected; after Stop it goes offline through its Last Will.
HTTP requests fail
- A negative code and the simulator only allows HTTP requests to: … in the Network log: the server only forwards to
iot.reslab-csub.cloud. - Code 301 or 302: the address redirects (often
http://tohttps://); use the final address. - request body too large: at most 768 KB, e.g. lower the camera quality or frame size.
Signing in and devices
- Your IoT Platform session has ended: sign in again; your open work in this browser is kept.
- Devices shows Allow on IoT Platform: the simulator may not read your devices yet; allow it once.
- A device has no Open template: you can only view it; its owner can make you an editor.
Browser and display
- Camera does not start (ESP32-CAM): allow the camera for this site in the browser, or choose Test pattern.
- Old version after an update: reload with Ctrl+Shift+R.
- Simple editor instead of the code editor: the editor could not load; reload the page.
- Lost work? The open project is kept in this browser only; save it with Projects or Export to have it elsewhere. Another browser or a private window starts empty.