Add an Azure IoT Hub application
Azure IoT Hub
applicationFor users that have IoT (Industrial Internet of Things) applications or solutions using
Microsoft®
Azure® IoT Hub
, FactoryTalk Edge Gateway
provides a method to collect information from Rockwell Automation
and third-party sources and send it to a Microsoft
Azure IoT Hub
. FactoryTalk Edge Gateway
facilitates creating objects that are required in SQL Server
to represent the model, which reduces the time for deploying a SQL Server
application.To communicate with the
Azure IoT Hub
, add an Azure IoT Hub
application in FactoryTalk Edge Gateway
, and configure and deploy the application. During configuration of an Azure IoT Hub
application, models selected from the Models
dialog box appear in Preview
as a hierarchical structure of Azure IoT Hub
.To add an
Azure IoT Hub
application- In the top-right corner, selectOnlineto go online with the gateway.FactoryTalk Edge Gatewaydisplays a green banner:Gateway Connection: Online.
- SelectData Flow>Applications.
- To add the first application, selectAdd Application.
- To add a subsequent application, selectAdd
.
- FromSelect Application, select an application
- SelectNext.
- ForAzure IoT Hub, set these parameters:
- Application Name.Defines the application name.
- Connect to Edge Runtime. Do not select for regular IoT applications.
- Use WebSockets.Select to use MQTTWS protocol. Uses port 443.
- IoT Device Name.Enter the name of the IoT device created in the Azure portal.
- IoT Device Connection String. Enter the Primary/Secondary Device connection string from IoT Hub device.
- Store and Forward.Enables the data storage in a database on the gateway. This setting also functions as a buffer for data entering the store database at higher speeds than the data is forwarded to the application.At each configured Fetch Interval, a maximum amount of data fetched from the store database is 256 KB.SelectStore and Forwardto enable the Maximum store size (bytes) and Fetch Interval (ms) settings.TIP:In case connectivity is lost to the external application, havingStore and Forwardenabled helps prevent periods of lost data to <MSSQL>. Store and Forward stores data in the database until the connection is restored.
- Maximum store size (bytes).Defines the maximum size of the store database on the gateway, in bytes. When the maximum store size is reached, the oldest data is deleted to make space for new application data.SelectStore and Forwardto enable this setting.
- Fetch Interval (ms).Defines the interval of time to egress (that is, forward) data from the store database, in milliseconds. Data continues to be egressed to the Azure application until the store database is empty.When egress fails, the data remains in the store database.SelectStore and Forwardto enable this setting.
- SelectSave.
Provide Feedback