Broker Connection
Use ws:// for local, wss:// for secure connections
Auto-generated if left empty
Topic Subscriptions
No active subscriptions
Publish Message
Test Telemetry Simulator
Simulate ESP32 device publishing telemetry data for testing.
seconds
Message Log
[INFO] MQTT Settings page loaded. Configure your broker and connect.
Setup Instructions
1. Run an MQTT Broker
You need an MQTT broker with WebSocket support. Options:
- Mosquitto:
mosquitto -c mosquitto.conf - EMQX: Free cloud or self-hosted
- HiveMQ: Cloud broker with free tier
Example mosquitto.conf for WebSocket:
listener 1883 listener 9001 protocol websockets allow_anonymous true
2. ESP32 Topic Format
Devices should publish to:
energy/{type}/{device_id}/telemetry
Example topics:
energy/solar/1/telemetryenergy/wind/turbine_a/telemetryenergy/battery/main/telemetry
3. Payload Format
{
"voltage": 48.5,
"current": 12.3,
"power": 596.55,
"energy": 1250.5,
"timestamp": 1706969200000
}