Add an
Azure IoT Hub
application

For 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
  1. In the top-right corner, select
    Online
    to go online with the gateway.
    FactoryTalk Edge Gateway
    displays a green banner:
    Gateway Connection: Online
    .
  2. Select
    Data Flow
    >
    Applications
    .
    • To add the first application, select
      Add Application
      .
    • To add a subsequent application, select
      Add
      .
  3. From
    Select Application
    , select an application
  4. Select
    Next.
  5. For
    Azure 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.
      Select
      Store and Forward
      to enable the Maximum store size (bytes) and Fetch Interval (ms) settings.
      TIP:
      In case connectivity is lost to the external application, having
      Store and Forward
      enabled 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.
      Select
      Store and Forward
      to 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.
      Select
      Store and Forward
      to enable this setting.
  6. Select
    Save.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal