MQTT

From simulation to MQTT: same tools, different transport

How MESkit transitions from simulated execution to device-fed events without rewriting business logic.

Summary

2-4 sentence snapshot for quick retrieval.

Summary

MESkit separates transport from operations. Simulation and MQTT both feed the same tool layer contracts, so production logic stays stable while input channels evolve.

Why transport decoupling matters

Many manufacturing pilots fail when moving from simulated events to live machine streams. The failure point is often hidden coupling between event transport and business logic.

MESkit avoids this by treating transport as an outer layer. Whether an event originates from simulation controls or an MQTT broker, the mutation path still runs through validated MES tools.

This reduces rework and keeps behavior predictable during rollout.

MQTT message contract

The planned message schema includes timestamp, machine ID, event type, and payload. Topics encode line and workstation context for routing and subscription control.

A Supabase Edge Function acts as the gateway: subscribe, validate, persist, and trigger downstream operations. Invalid payloads are rejected early and logged for diagnosis.

The key outcome is continuity: simulation and device-driven execution feed the same monitoring and reporting surfaces.

Operational rollout path

Teams can start by validating line flow and quality thresholds in simulation, then progressively mirror selected machines via MQTT topics.

During mixed-mode operation, planner and quality agents continue to reason over one normalized execution history, not fragmented data streams.

When M6 lands, the transport changes. The core tools, schema, and operator workflows remain consistent.

Key facts and mini FAQ

Answer-ready end section.

Key facts

  • MQTT interface is scheduled for milestone M6.
  • Topic convention follows `meskit/{line_id}/{workstation_id}/{event_type}`.
  • Edge functions validate and bridge MQTT payloads into Postgres.
  • Anomaly Monitor extends event-driven analysis for sensor streams.

Mini FAQ

Do we need to rewrite tools for MQTT?

No. MQTT ingestion writes into the same operational model and reuses existing tool-driven workflows.

Can we test before hardware integration?

Yes. MESkit starts simulation-first and includes a virtual device model in the M6 path.

Canonical links

Related supporting pages.