MQTT Machine Simulator
Publish machine simulation data to any MQTT broker and test how your MES, SCADA or IoT platform consumes it. MaConSim manages broker connections and a hierarchical topic tree, and publishes live or simulated values with per-topic QoS, retain and publish interval.
Back to the product overview.

How the MQTT integration works
- Create a broker tree — a connection to an MQTT broker with host, port
(default
localhost:1883), optional credentials, TLS toggle, client ID, keep-alive and birth/last-will messages. - Build a topic tree from slash-separated topic paths, e.g.
{plant}/{machine}/{data-channel}such asfactory-berlin/press-1/spindle-temperature. - Configure each topic: signal type (status, telemetry, event, alarm, metrics, command), QoS level (0/1/2), retain flag, publish interval and a data source.
- Start the broker runtime. MaConSim publishes the configured topics; MaConSim’s own broker accepts client connections on port 1883 (plain) or 8883 (TLS).
MQTT capabilities
- Broker trees: broker host/port, MQTT-over-WebSocket port, username / password authentication, auto-generated client ID, keep-alive, buffer and connection limits
- TLS/SSL for encrypted connections (port 8883 by default)
- Birth and last-will messages for online/offline status
- Topic tree: hierarchical, slash-separated paths; leaf topics with signal type, QoS 0/1/2, retain, publish interval (default 1000 ms)
- Live value monitoring in the MaConSim UI (updates every 2 s)
- Data sources per topic field: static value, database reference (visual query builder with JOINs — shared with OPC UA), or simulation (sine, sawtooth, random, …)
Typical use cases
- Testing MES/IoT platform subscriptions against a realistic topic structure.
- Validating payload formats and alarm/event messages.
- Simulating sensor telemetry (temperature, vibration, …) without hardware.
- Reproducing connection-loss scenarios via last-will messages.
Technical details
| Aspect | Detail |
|---|---|
| Default ports | 1883 (plain), 8883 (TLS) — configurable per broker tree and in docker-compose.yml |
| QoS | 0, 1 or 2 per topic (default 1) |
| Retain | Optional per topic |
| Authentication | Optional username/password; TLS optional |
| Birth / last will | Optional topic + message on connect / unexpected disconnect |
| Plant export | Broker configurations and topics are exported; passwords are omitted and must be re-entered after import |
| Deployment | Desktop app and Docker |
FAQ
Does MaConSim run its own MQTT broker or connect to an external one?
Both. You configure a broker connection per broker tree — point it at your own
broker or at MaConSim’s default localhost:1883. MaConSim exposes its broker
ports (1883 plain / 8883 TLS) so external MQTT clients can subscribe directly.
Is TLS supported? Yes — enable TLS/SSL on the broker tree and use port 8883 by default.
Can topics publish dynamic simulation data? Yes — each topic field can use a static value, a database reference to live machine data, or a simulation (sine, sawtooth, random, …).
Technical documentation
Read the MQTT chapter of the User Manual: MQTT and the shared Data Source Configuration.
Related: OPC UA simulator · Machine Simulation · REST API.
