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
- Navigate to Devices → Protocols
- Select MQTT Message Queuing Telemetry Transport
- Create channel:
- Name:
MQTTClient
- Protocol:
MQTT Client
- Go to Device → Nodes
- Name:
IoT_Sensors
- Open PrimaryStation and configure:
- BrokerURL: 127.0.0.1
- Port: 502
- ClientID: FrameworX
3. Create Points
- Navigate to Devices → Points
- Add points for each expected topic:
Temperature Tank 1 Sensor:
- TagName:
TankFarm/Tank1/Temp
- Node:
IoT_Sensors
- Topic:
TankFarm/Tank1/temperature
- AccessType: Read
Temperature Tank 2 Sensor:
- Name:
TankFarm/Tank2/Temp
- Node:
IoT_Sensors
- Topic:
TankFarm/Tank2/temperature
- AccessType: Read
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