Live IoT Telemetry Studio
Actual received MQTT messages from Wokwi or compatible devices, not generated browser values.
Connect to your MQTT session
Subscription:
The bridge is an independent subscriber. Successful reception does not verify Node-RED, Telegraf, InfluxDB, Grafana, or physical actuation.
Live visualization
Fan and pump state unknown: the original firmware does not transmit actuator feedback. Values older than 30 seconds are marked historical, not fresh. Source labels are self-declared; they cannot establish device identity.
Received measurement history
Per device and declared source. Horizontal axis uses bridge receipt time, not sensor acquisition time.
Message inspector
Subscription journal
Recent received records
| Receipt time | °C | RH % | Soil % | QoS | Sequence |
|---|
Up to 600 recent accepted records shared across devices, memory only. No cloud storage. This is not a loss-rate or end-to-end latency measurement: the firmware sends no sequence number or acquisition timestamp.
Connect Wokwi → WSL → website
Existing toolkit and firmware are sufficient. Follow the steps in order. For first-time setup, open the deployment wizard.
1 · Ubuntu Bash — verify the existing environment
Start Ubuntu 24.04. Ensure the toolkit is in your Linux home directory. Use the existing setup page if a dependency is missing.
ls ~/psut-wsl
source ~/psut-wsl/activate.sh
python -c "from paho.mqtt.client import CallbackAPIVersion; print('MQTT library ready')"
sudo systemctl start mosquitto
ss -ltn | grep ':1884'Expected result for each action (5)
ls ~/psut-wslThe toolkit directory listing includes setup_wsl.sh, labs, tools and wokwi.source ~/psut-wsl/activate.shThe toolkit virtual environment is selected in this terminal, usually with (.venv) in the prompt. Verify which python points into ~/psut-wsl/.venv.python -c "from paho.mqtt.client import CallbackAPIVersion; print('MQTT library ready')"The specified success message (paho-mqtt OK or MQTT library ready) is printed if the import succeeds.sudo systemctl start mosquittoNormally no output on success. Run systemctl is-active for the named service and confirm active; inspect logs if it fails.ss -ltn | grep ':1884'A listening TCP socket for port 1884 should appear if the local MQTT broker is running.
Expected: Python prints MQTT library ready and Mosquitto listens on port 1884. If systemd is unavailable, follow the setup troubleshooting instructions.
2 · Windows — start the live website
Extract the complete website into a new folder. Stop any existing Studio server on port 8760 by pressing Ctrl+C in its own terminal. Double-click START_LIVE_STUDIO.cmd. It starts the existing AI server using your toolkit's Python virtual environment, so Ollama is not required.
Open http://localhost:8760/live.html. Choose Mosquitto and click Start subscription. Expected: Subscribed (SUBACK accepted). No measurements yet.
3 · Ubuntu Bash — test MQTT before using Wokwi
In a separate Ubuntu terminal publish a single clearly labeled mock message:
mosquitto_pub -h 127.0.0.1 -p 1884 -t psut/iot/lab-local/greenhouse/test-node/telemetry -m '{"source":"mock","temperature":25.0,"humidity":60.0,"soil_moisture":42.0}'Expected: test-node / mock appears in the device selector. Optional automated check: double-click TEST_LIVE_MQTT.cmd in the website folder; it performs a separate local publish/subscribe test using the existing toolkit environment. If it does not, inspect SUBACK and verify the exact topic and port. This is a live MQTT test with mock values, not a Wokwi reading.
4 · Windows VS Code — open the existing Wokwi firmware
Open the Windows-side extracted folder psut-wsl/wokwi/esp32-greenhouse in VS Code (not Remote WSL). Verify PlatformIO and Wokwi extensions are installed and licensed if required. The supplied main.cpp uses:
BROKER = "host.wokwi.internal"
BROKER_PORT = 1884
STUDENT_ID = "lab-local"
NODE = "esp32-01"In Windows PowerShell verify access to the WSL broker:
Test-NetConnection localhost -Port 1884Expected: TcpTestSucceeded: True. If false, use the existing Setup networking/forwarding instructions. Wokwi uses its private gateway to access the host; do not expose the anonymous broker to the internet. Build the PlatformIO project, then use Wokwi: Start Simulator. Check serial output for Wi-Fi connected, MQTT connected and Publishing to the exact greenhouse topic. See Wokwi project documentation.
5 · Website — observe received Wokwi data
Wait for the firmware's 10-second publishing interval. Select esp32-01 / wokwi in the device selector. Change the DHT22 temperature/humidity and soil potentiometer in Wokwi, then inspect the next received samples, plots and JSON. A fresh sample verifies this subscriber received a message, not that other services did. Stop the subscription when finished.
Related implementation: P43 MQTT/Telegraf · Node-RED · InfluxDB and Grafana.
6 · Optional HiveMQ public demo or hardware source
Only mock or Wokwi demo values may be used on the public broker. Generate a session in Ubuntu:
python ~/psut-wsl/tools/mqtt_profile.py hiveUse the printed STUDENT_ID, BROKER = broker.hivemq.com, and BROKER_PORT = 1883 in a separate firmware copy. Build again. Select HiveMQ in the website; the backend reads the same session file, never subscribes to all public topics. Topics are not authentication or privacy. Use the local profile only for physical hardware; a compatible device must publish the same schema and explicitly declare source hardware. Physical hardware needs a safe network path to the broker; the existing loopback-only listener will not be accessible from a separate device without additional network configuration. No actuator commands are sent by this studio.
Network performance laboratory
Investigate seeded abstract queueing, traffic scalability and QoS trade-offs separately from actual service deployment.
Open Network Lab →Integrated IoT System Studio
Follow the complete telemetry pipeline, compare live and stored evidence, and investigate controlled failures.
Open integrated system workbench →Live hardware engineering bench
Private MQTTs gateway, enrolled ESP32/Pi telemetry, bounded LED pulse, virtual comparison and evidence exports.
Open live hardware bench →