Issue
How to subscribe to a topic in Azure IoT hub via MQTT protocol.
Product Line
EcoStruxure Building Operation
Environment
- Building Operation Enterprise Server
- Building Operation Automation Server Premium
- Building Operation Automation Server Bundled
- Building Operation Edge Server
Cause
Need to configure EBO MQTT interface and Azure IoT Hub, so EBO can subscribe to MQTT messages from Azure MQTT IOT Hub.
Resolution
The following video will illustrate how to:
- Create IoT interface and Azure MQTT client in EBO
- Configure the MQTT connection
- Create and configure MQTT data values
- Create and configure a data group
- Configure the subscription parameters
- Test the connection
Things you need:
- EBO 2022 or later with valid MQTT license or demo license (Enterprise Server, AS-P or AS-B)
- valid Azure Subscription with possibility to use free account during testing. For each Azure subscription one IoT hub in the free tier can be created, refer to IoT Hub | Microsoft Azure
- Visual studio code to be used to test the connection between EBO and Azure IoT hub, can be download from: Visual Studio Code