1. Set Up the MQTT Broker and Simulator
Start the Built-in Broker
- Navigate to Data Explorer → MQTT Tools
- Click Run Local Built-in Broker to start the broker
- Connect to the broker (connection will show as established)
Run the MQTT Publisher Simulator
- Start the MQTT Publisher Simulator
- Verify data is publishing - you'll see:
- Cities (e.g., Barcelona)
- Solar panels with properties:
- Name
- Power
- Temperature
- Real-time changing values
Devices → Tutorial | Concept | How-to Guide | Reference- Navigate to Devices → Protocols
- Select MQTT ClientMessage Queuing Telemetry Transport
- Create channel:
- Name:
MQTTClient
- Protocol:
MQTT Client
- Settings:
- Broker URL:
test.mosquitto.org
(or your broker) - Port: 1883 (or 8883 for SSL)
- Client ID:
FrameworX_001
- Keep Alive: 60 seconds
Set Authentication (if required)
For secured brokers:
Username: Your usernamePassword: Your passwordSSL/TLS: Enable if using port 8883
Certificates: Browse to certificate filesSubscribe to Topics
- Go to Devices Device → Nodes
Create subscription node:- Name:
IoT_Sensors
- Channel:
MQTTClient
- Subscribe Topic:
sensors/+/temperature
- QoS: 1
The '+' wildcard subscribes to all sensors.
- Open PrimaryStation and configure:
- BrokerURL: 127.0.0.1
- Port: 502
- ClientID: FrameworX
3. Create Points
Create Points for Subscribed Data- Navigate to Devices → Points
- Add points for each expected topic:
Temperature Tank 1 Sensor:
- Name: Sensor1_TagName:
TankFarm/Tank1/Temp
- Node:
IoT_Sensors
- Topic:
sensorsTankFarm/sensor1Tank1/temperature
- Data TypeAccessType: Double
- JSON Path:
$.value
(if JSON payload) - Read
Temperature Tank 2 Humidity Sensor:
- Name:
Sensor1_Humidity
TankFarm/Tank2/Temp
- Node:
IoT_Sensors
- Topic:
sensorsTankFarm/sensor1Tank2/humiditytemperature
Data Type - AccessType:
Double
Publish Tag Values
- Create publish Device Channel and Node:
- Protocol: MQTT Publisher
- Name:
SCADA_Publisher
- Publish Mode: On Change
- Configure published points:
- Tag: Select tag to publish
- Topic:
scada/line1/production
- QoS: 1
- Retain: True (optional)
Temperature Tank 3 Sensor (write):
- Name:
TankFarm/Tank3/Temp
- Node:
IoT_Sensors
- Topic:
TankFarm/Tank3/temperature
- AccessType: Write
4. Test Connection
- Start Runtime
- Open Devices → Devices Monitor
- Use MQTT client tool (like MQTT Explorer) to:
- Publish test messages
- Verify FrameworX publishes
Next Steps
CONNECT (Reference) - Explore list of connectors[Enrich Data & Scripts] - Process MQTT data[Secure & Deploy] - Production security