Microsoft Azure IoT Hub

The Microsoft Azure IoT Hub is an IoT suite in the Azure cloud, which offers several services for connecting IoT devices with Azure services, processing incoming messages or sending messages to the devices. From a device perspective, the functionalities of the Microsoft Azure IoT Hub enable simple and safe connection of IoT devices with Azure services by facilitating bidirectional communication between the devices and the Azure IoT Hub.

Microsoft Azure IoT Hub 1:

Microsoft Azure IoT Hub and TwinCAT IoT

The Microsoft Azure IoT Hub offers several communication interfaces for receiving or sending messages, including MQTT. It is therefore possible to use TwinCAT IoT to send messages to or receive messages from the Microsoft Azure IoT Hub or to control the Device Twin or execute method calls to the device.

Various samples illustrate how to connect to the Microsoft Azure IoT Hub.

Sample

Product

Description

IotMqttSampleAzureIotHub

TF6701

This sample demonstrates how you can use MQTT function blocks within the PLC logic to connect to the Microsoft Azure IoT Hub and exchange data.

Data Agent

TF6720

This sample demonstrates how to configure the TwinCAT IoT Data Agent to establish a connection to the Microsoft Azure IoT Hub and exchange data.

Data Agent Device Twin

TF6720

This sample demonstrates how to configure the TwinCAT IoT Data Agent to establish a connection to the Microsoft Azure IoT Hub and exchange data with the Device Twin.