Abstract MQTT - UG
Abstract MQTT - UG
Chapter 4 Components...................................................................................31
abstractMqttDriver-AbstractMqttDriverNetwork ...........................................31
abstractMqttDriver-AbstractMqttDevice ......................................................33
abstractMqttDriver-AwsMqttAuthenticator...................................................35
abstractMqttDriver-AzureMqttSasAuthenticator...........................................36
abstractMqttDriver-AzureSasTokenParameters...........................................38
abstractMqttDriver-AzureIotSasToken ........................................................38
abstractMqttDriver-GenericMqttAuthenticator .............................................39
abstractMqttDriver-GcpAuthenticator .........................................................41
abstractMqttDriver-GcpIotParameters ........................................................42
abstractMqttDriver-TokenParameters .........................................................43
abstractMqttDriver-MqttCallbackRouter ......................................................43
abstractMqttDriver-PointCallbackHandler ...................................................44
abstractMqttDriver-MqttClientDriverPointDeviceExt.....................................44
abstractMqttDriver-MqttClientDriverDeviceFolder........................................44
abstractMqttDriver-MqttClientDriverPointFolder ..........................................44
abstractMqttDriver-MqttBooleanObjectPublishExt .......................................45
abstractMqttDriver-MqttBooleanObjectSubscribeExt ...................................47
abstractMqttDriver-MqttNumericObjectPublishExt .......................................49
April 6, 2022 3
Contents Abstract MQTT Driver Guide
abstractMqttDriver-MqttNumericObjectSubscribeExt ...................................51
abstractMqttDriver-MqttStringObjectPublishExt...........................................53
abstractMqttDriver-MqttStringObjectSubscribeExt.......................................55
abstractMqttDriver-MqttEnumObjectPublishExt...........................................57
abstractMqttDriver-MqttEnumObjectSubscribeExt.......................................59
Chapter 5 Plugins ...........................................................................................63
Abstract Mqtt Driver Device Ux Manager ....................................................63
Mqtt Client Driver Point Manager................................................................64
Chapter 6 Windows ........................................................................................67
New Device Windows ...............................................................................67
Add point windows ....................................................................................67
Index.................................................................................................................71
4 April 6, 2022
Preface
April 6, 2022 5
Preface Abstract MQTT Driver Guide
6 April 6, 2022
About this Guide
This topic contains important information about the purpose, content, context, and intended audience for this
document.
Product Documentation
This document is part of the EC-NetTM technical documentation library. Released versions of EC-Net software
include a complete collection of technical information that is provided in both online help and PDF format. The
information in this document is written primarily for Systems Integrators. In order to make the most of the infor-
mation in this book, readers should have some training or previous experience with EC-NetTM 4 or EC-NetAXTM
software.
Document Content
This document describes how to create an Abstract MQTT (MQ Telemetry Transport) client connection to the
Abstract MQTT broker for the EC-Net 4 v4.2 (or later) station for the purpose of publishing or subscribing the
“lightweight” messaging protocol into the Niagara Framework.
April 6, 2022 7
Abstract MQTT Driver Guide
Related Documentation
The following documents relate to the AbstractMqtt Driver.
• Drivers Guide
• EC-Net 4 Platform Guide
8 April 6, 2022
Chapter 1 Getting started
Topics covered in this chapter
♦ Requirements
♦ Adding the network
♦ Adding a device and authenticator
♦ Setting up client certificate authentication
♦ Discovering points
♦ Adding points manually
♦ Publishing data
MQTT (MQ Telemetry Transport) driver supports a lightweight messaging protocol for use on top of the TCP/IP
protocol driver installation. Its publish-subscribe architecture is designed to be open and easy to implement with
up to thousands of remote clients capable of being supported by a single server.
Publish and subscribe
The MQTT protocol is based on the principle of publish and subscribe. Multiple clients connect to a broker and
subscribe to topics that they are interested in. Clients also connect to the broker and publish messages to
topics. MQTT restricts one subscriber to one topic.
Client
The term client refers either to a publisher or a subscriber. The MQTT client can be both a publisher and a sub-
scriber at the same time. An MQTT client is any device from a micro controller up to a full-fledged server that
has an MQTT library running and is connected to an MQTT broker over any type of network. The EC-Net solu-
tion for MQTT configures only the client, and not the broker. Data types supported by the client are Boolean,
string, numeric and enum.
Broker
The broker is the central hub for messages. Depending on the actual implementation, a broker may handle
many concurrently-connected MQTT clients. The broker is primarily responsible for:
• Authenticating each client
• Receiving all messages
• Filtering messages
• Deciding which subscriber is interested in each message
• Sending each message to its subscribed client
Most brokers are extensible, providing easily integrated, custom authentication, authorization and integration
into back-end systems. Integration is an especially important aspect because often the broker is the component
that is directly exposed to the Internet. The broker handles multiple clients and passes messages to down-
stream analyzing and processing systems. The EC-Net The MQTT client supports a TLS connection to a
broker, also using login credentials.
Devices
The MQTT driver supports these devices:
• The DefaultMqttDevice represents a generic MQTTNiagara client, which you can use to connect to any
broker.
• The AwsMqttDevice connects an MQTT client to the AWS IoT Hub.
• The GcpMqttDevice connects the MQTT client to the Google Cloud Platform.
April 6, 2022 9
Chapter 1 Getting started Abstract MQTT Driver Guide
Authenticators
The MQTT authenticators plug in to the MQTT device according to establish a secure connection between a
broker and a client device. You choose which authenticator to use for each device.
The driver provides these authenticators:
• The generic DefaultAuthenticator serves most devices, providing ways to connect to a broker.
• The AwsIoTAuthenticator makes a secure connection to the AWS IoT (Amazon Web Services Internet of
Things) using the certificate authentication.
• The GcpAuthenticator authenticates a secure connection between a client device and a broker on a Goo-
gle Cloud Platform. It uses RSA keys.
Requirements
This topic describes the licensing and software requirements for using the EC-NetTM Abstract MQTT Driver.
License Requirements
The abstract abstractMqttDriver module is a licensed feature. You can check to see if your software in-
stallation is licensed for MQTT by opening the license file from the License Manager view. The feature name is
present only if your platform is licensed for MQTT.
Figure 1 Example MQTT license with point limit attribute values set to “none”.
Software Requirements
The EC-NetTM Abstract MQTT Driver is available for EC-Net 4 v4.2 (or later).
10 April 6, 2022
Abstract MQTT Driver Guide Chapter 1 Getting started
April 6, 2022 11
Chapter 1 Getting started Abstract MQTT Driver Guide
Step 1 Using a secure channel, download the certificate from the AWS IoT portal or Google Cloud Platform
to your PC.
CAUTION: Always share certificates over a secure channel.
Step 2 Working in the station, expand Config→Services→PlatformServices and double-click
CertManagerService.
The Certificate Management view opens.
This same view is available by expanding Platform and double-clicking Certificate Management.
Step 3 At the bottom of the view, click the Import button and navigate to where you saved the certificate.
Step 4 After selecting the certificate, click Open.
The next step associates this certificate with the device.
Step 5 Expand Config→Drivers→AbstractMqttDriverNetwork.
Step 6 Do one of the following:
• If you are using the AWS IoT cloud, expand AwsMqttDevice and double-click authenticator.
• If you are using the Google Cloud Platform, expand GcpMqttDevice→authenticator and double-
click Token Parameters.
Step 7 To select the client certificate, use the Certificate Alias drop-down list.
You are ready to connect your client to the broker.
Discovering points
You can add points individually or discover local points under each device. Discovery includes writing a BQL
(Baja Query Language) expression to locate the points in the station.
Step 1 In the Nav tree, expand the Config→Drivers→AbstractMqttDriverNetwork and expand the device.
Step 2 To view the point manager, right-click the Points node and click Views→Mqtt Client Driver Point
Manager or double click the Points node.
The Mqtt Client Driver Point Manager opens.
Step 3 Click the Discover button.
The Bql Query Builder window opens.
12 April 6, 2022
Abstract MQTT Driver Guide Chapter 1 Getting started
Step 6 To add a discovered point to the station database, select the point(s) in the Discovered and click
Add.
The Add window opens.
Step 7 Give the point a Name, configure the other properties as needed and click OK.
The added point begins updating with the real-time values.
April 6, 2022 13
Chapter 1 Getting started Abstract MQTT Driver Guide
Publishing data
To publish data to the broker, you link a data point output value to an MQTT publish point of the proper data
type. This procedure is the same when publishing Boolean, string and enum data.
Prerequisites: You have added the points you need to the station.
Step 1 Expand Config→Drivers and expand the device.
Step 2 Right-click the Points node and select Views→Wire Sheet.
The Wire Sheet view opens.
Step 3 Right-click the point glyph and select a Link Mark option from the list.
Step 4 For a numeric point, right-click it and select the Link To “MqttNumericPublishPoint” from the
menu.
The Link window opens.
14 April 6, 2022
Abstract MQTT Driver Guide Chapter 1 Getting started
Step 5 Connect the output of the data point to the input of the MqttNumericPublishPoint.
The data should now be transferring to the broker.
April 6, 2022 15
Chapter 1 Getting started Abstract MQTT Driver Guide
16 April 6, 2022
Chapter 2 Abstract MQTT Driver with
GCP Authenticator
Topics covered in this chapter
♦ Setting up Google Cloud Platform (GCP)
♦ Setting up station to connect to GCP
♦ Creating device in GCP
♦ Sending messages from EC-Net to GCP
♦ Sending messages GCP Console to EC-Net
The MQTT authenticators plug in to the MQTT device according to establish a secure connection between a
broker and a client device. You choose which authenticator to use for each device.
The GcpAuthenticator authenticates a secure connection between a client device and a broker on a Google
Cloud Platform. It uses JwtKeys for connection.
April 6, 2022 17
Chapter 2 Abstract MQTT Driver with GCP Authenticator Abstract MQTT Driver Guide
Step 3 Enter the Project name of your choice and browse the location. Click Create.
A new project is created.
Step 4 Navigate toTopics using the navigation menu on the top left or using the search bar at top of the
screen. (Search: Topics).
a. Select Topics from the list.
b. Create Topics (tempData, device, data).
Step 5 Navigate toIoT Core using the navigation menu on the top left or using the search bar at top of the
screen. (Search: IoT Core).
Step 6 Create a new Registry in IoT Core.
a. Enter Registry ID.
b. Select region as europe-west1 or us-central1.
18 April 6, 2022
Abstract MQTT Driver Guide Chapter 2 Abstract MQTT Driver with GCP Authenticator
NOTE: At the time of testing choosing Asia-east1 did not connect and produced an output error
as: “Invalid Protocol Version”.
c. Select a topic from the list created in step 4.
Step 7 Select Add under additional topics and select tempData. Enter degree as a subfolder.
Step 8 Under the device state topic, select device from the list. Projects/PROJECT_NAME/topics/device.
Click Create.
Step 4 Drag the GcpMqttDevice component to your AbstractMqttDriverNetwork in the Nav tree and click
OK.
Step 5 Expand GcpMqttDevice, and double-click authenticator.
Gcp Authenticator Property sheet opens.
April 6, 2022 19
Chapter 2 Abstract MQTT Driver with GCP Authenticator Abstract MQTT Driver Guide
20 April 6, 2022
Abstract MQTT Driver Guide Chapter 2 Abstract MQTT Driver with GCP Authenticator
Step 3 Select MqttStringPublishPoint from the drop-down list and click OK.
Another New window opens.
April 6, 2022 21
Chapter 2 Abstract MQTT Driver with GCP Authenticator Abstract MQTT Driver Guide
22 April 6, 2022
Abstract MQTT Driver Guide Chapter 2 Abstract MQTT Driver with GCP Authenticator
Step 3 Select MqttStringSubscribePoint from the drop-down list and click OK.
Another New window opens.
April 6, 2022 23
Chapter 2 Abstract MQTT Driver with GCP Authenticator Abstract MQTT Driver Guide
24 April 6, 2022
Chapter 3 Abstract MQTT Driver with
Microsoft Azure
Topics covered in this chapter
♦ Azure SAS Tokens
♦ Connecting Abstract MQTT Driver to Microsoft Azure IoT Hub
As of EC-Net 4.12, the Abstract MQTT driver includes an authenticator for providing connections to the Micro-
soft Azure IoT Hub platform.
In general, there are two available methods to directly authenticate with Azure IoT Hub as an MQTT client:
• X.509 certificates
• Shared Access Signature (SAS) tokens
The Abstract MQTT driver currently only supports SAS tokens.
April 6, 2022 25
Chapter 3 Abstract MQTT Driver with Microsoft Azure Abstract MQTT Driver Guide
Step 1 On the Microsoft Azure website, search for IoT Hub and navigate to the IoT Hub homepage.
Step 2 Create an IoT Hub, choose your subscription plan and region, and select the appropriate network ac-
cess for your scenario.
Wait for the deployment to complete.
Step 3 Once complete, click on your newly created hub and navigate to Device Management→Devices.
26 April 6, 2022
Abstract MQTT Driver Guide Chapter 3 Abstract MQTT Driver with Microsoft Azure
Step 5 To auto-generate keys and enable the device, select Symmetric key as the Authentication type.
Step 6 Once created, click on your device name to open the Device Configuration view.
Step 7 Click the Copy icon to the right side of either your device’s Primary Connection String or Secon-
dary Connection String.
April 6, 2022 27
Chapter 3 Abstract MQTT Driver with Microsoft Azure Abstract MQTT Driver Guide
Step 2 In the Driver Manager view, click New, select AbstractMqttDriverNetwork from the drop-down
menu, and click OK.
Step 3 In the open abstractMqttDriver palette, expand the Devices folder.
a. Optional: For Advance Expiration, set an appropriate value to define the time period prior to the
token’s expiry when a new token is generated replacing the existing token. The default value is 10
seconds.
b. Optional: Expand Token Parameters and choose an appropriate value for Next Token Expiry
Period. By default, the token expires every 24 hours.
Step 6 Right-click authenticator and select Actions→Setup From Connection String.
28 April 6, 2022
Abstract MQTT Driver Guide Chapter 3 Abstract MQTT Driver with Microsoft Azure
Step 7 In the Setup From Connection String window, paste in the connection string as copied from the
Azure IoT Hub device configuration (see section “Setting up Azure IoT Hub on Azure portal”).
The authenticator populates the following fields and connects the parent device to Azure IoT Hub:
• Broker Endpoint
• Client ID
• Token Parameters
• Current Token
April 6, 2022 29
Chapter 3 Abstract MQTT Driver with Microsoft Azure Abstract MQTT Driver Guide
NOTE: The authenticator automatically generates a new token before the current token expires and
reconnects the device using the new token. To prompt this procedure manually, you can at any time
invoke the Generate New Token action on the authenticator.
30 April 6, 2022
Chapter 4 Components
Topics covered in this chapter
♦ abstractMqttDriver-AbstractMqttDriverNetwork
♦ abstractMqttDriver-AbstractMqttDevice
♦ abstractMqttDriver-AwsMqttAuthenticator
♦ abstractMqttDriver-AzureMqttSasAuthenticator
♦ abstractMqttDriver-AzureSasTokenParameters
♦ abstractMqttDriver-AzureIotSasToken
♦ abstractMqttDriver-GenericMqttAuthenticator
♦ abstractMqttDriver-GcpAuthenticator
♦ abstractMqttDriver-GcpIotParameters
♦ abstractMqttDriver-TokenParameters
♦ abstractMqttDriver-MqttCallbackRouter
♦ abstractMqttDriver-PointCallbackHandler
♦ abstractMqttDriver-MqttClientDriverPointDeviceExt
♦ abstractMqttDriver-MqttClientDriverDeviceFolder
♦ abstractMqttDriver-MqttClientDriverPointFolder
♦ abstractMqttDriver-MqttBooleanObjectPublishExt
♦ abstractMqttDriver-MqttBooleanObjectSubscribeExt
♦ abstractMqttDriver-MqttNumericObjectPublishExt
♦ abstractMqttDriver-MqttNumericObjectSubscribeExt
♦ abstractMqttDriver-MqttStringObjectPublishExt
♦ abstractMqttDriver-MqttStringObjectSubscribeExt
♦ abstractMqttDriver-MqttEnumObjectPublishExt
♦ abstractMqttDriver-MqttEnumObjectSubscribeExt
Components include services, folders and other model building blocks associated with a module. Each of the
following Mqtt components are briefly described in this section.
This topic contains a short description of a component or the component plugin view.
abstractMqttDriver-AbstractMqttDriverNetwork
This component is the top-level container component for an AbstractMqttDriverNetwork in a station.
This component is located in the abstractMqttDriver palette. Like other drivers, you should install this
component under the Drivers node of a station. The default view of this component is the Mqtt Client Driver
Device Manager view where you can add new devices, remove or edit devices in a tabular layout.
April 6, 2022 31
Chapter 4 Components Abstract MQTT Driver Guide
To access these properties, expand Config→Drivers, right-click AbstractMqttDriverNetwork and click, View-
s→AX Property Sheet.
32 April 6, 2022
Abstract MQTT Driver Guide Chapter 4 Components
abstractMqttDriver-AbstractMqttDevice
This driver supports four MQTT device components that communicate with the broker: AbstractMqttDevice,
DefaultMqttDevice, AwsMqttDevice and GcpMqttDevice. The only difference among them is that the Ab-
stractMqttDevice does not provide communication security, which means that it does not include an authenti-
cator component. You configure the device by setting its properties to match the settings for the broker.
To access these properties, expand Config→Drivers and double-click a device object in the Nav tree.
April 6, 2022 33
Chapter 4 Components Abstract MQTT Driver Guide
In addition to the standard properties (Status, Enabled, Fault Cause, Health, Alarm Source Info, and Poll Fre-
quency), these properties are unique to these components.
34 April 6, 2022
Abstract MQTT Driver Guide Chapter 4 Components
Actions
These actions are available on both components. To perform an action, right-click the device in the Nav tree
and click Actions followed by selecting the action.
Action Description
NOTE:
The Ip address, Client ID, and port number of the broker must be entered for Connect and Disconnect actions
to work.
abstractMqttDriver-AwsMqttAuthenticator
This component sets up a secure connection between an AWS client and broker using certificates and keys.
April 6, 2022 35
Chapter 4 Components Abstract MQTT Driver Guide
abstractMqttDriver-AzureMqttSasAuthenticator
This component sets up a secure connection between the EC-NetTM a Abstract MQTT device and the Azure
IoT Hub.
36 April 6, 2022
Abstract MQTT Driver Guide Chapter 4 Components
Actions
To perform an action, right-click authenticator, select Actions and select the action.
April 6, 2022 37
Chapter 4 Components Abstract MQTT Driver Guide
• Generate New Token: Manually generates a new SAS token to use for connections. It replaces any existing
token.
• Setup From Connection String: Configures the authenticator and generates a new SAS token from that
configuration.
abstractMqttDriver-AzureSasTokenParameters
This component displays the configuration values that are used when generating a new Azure SAS token.
Figure 6 abstractMqttDriver-AzureSasTokenParameters properties
abstractMqttDriver-AzureIotSasToken
This component represents an instance of a current Azure IoT Hub SAS token.
38 April 6, 2022
Abstract MQTT Driver Guide Chapter 4 Components
abstractMqttDriver-GenericMqttAuthenticator
This is the default authenticator. It configures a connection between client and broker that is not secure. You
might use this type of connection when debugging connection problems. This should not be your preferred
authenticator.
April 6, 2022 39
Chapter 4 Components Abstract MQTT Driver Guide
40 April 6, 2022
Abstract MQTT Driver Guide Chapter 4 Components
abstractMqttDriver-GcpAuthenticator
This component provides secure communication between a device and the Google Cloud Platform (GCP).
Figure 9 GcpAuthenticator properties
April 6, 2022 41
Chapter 4 Components Abstract MQTT Driver Guide
abstractMqttDriver-GcpIotParameters
This component configures the Google Cloud Platform Internet of Things properties.
Figure 10 Gcp Iot Parameters properties
42 April 6, 2022
Abstract MQTT Driver Guide Chapter 4 Components
abstractMqttDriver-TokenParameters
This component configures security-related properties for Google Cloud Platform devices.
abstractMqttDriver-MqttCallbackRouter
This component configures callback routing. Several routing methods specify a callback function (also called a
handler function).
April 6, 2022 43
Chapter 4 Components Abstract MQTT Driver Guide
abstractMqttDriver-PointCallbackHandler
This component handles the information received regarding points.
To access these properties, in the station expandConfig→Drivers→AbstractMqttDriverNetwork→Devices,
any deviceAuthenticator, any authenticator Callback Route and double-click Handler.
abstractMqttDriver-MqttClientDriverPointDeviceExt
This component is a container for Mqtt client points.
The Mqtt Client Driver Point Manager is the default view for this component. It has no properties of its own.
abstractMqttDriver-MqttClientDriverDeviceFolder
This component implements a folder under the network.
Typically, you add such folders using the New Folder button in the Mqtt Client Driver Device Manager view of
the network. Each MqttClientDriverDeviceFolder has its own Mqtt Client Driver Device Manager view.
abstractMqttDriver-MqttClientDriverPointFolder
This component implements a folder under the Points extension.
Typically, you add such folders using the New Folder button in the Mqtt Client Driver Point Manager view of
the Points extension. Each MqttClientDriverPointFolder has its own Mqtt Client Driver Point Manager view.
44 April 6, 2022
Abstract MQTT Driver Guide Chapter 4 Components
abstractMqttDriver-MqttBooleanObjectPublishExt
This component configures the driver to publish Boolean data.
This component is in the abstractMqttDriver palette under the AbstractMqttPoints folder.
Figure 13 Mqtt Boolean Object Publish Point Ext properties
April 6, 2022 45
Chapter 4 Components Abstract MQTT Driver Guide
46 April 6, 2022
Abstract MQTT Driver Guide Chapter 4 Components
abstractMqttDriver-MqttBooleanObjectSubscribeExt
This component configures the subscription to Boolean data.
This component is in the abstractMqttDriver palette under the AbstractMqttPoints folder.
Figure 14 Mqtt Boolean Object Subscribe Point Ext Property Sheet
April 6, 2022 47
Chapter 4 Components Abstract MQTT Driver Guide
48 April 6, 2022
Abstract MQTT Driver Guide Chapter 4 Components
abstractMqttDriver-MqttNumericObjectPublishExt
This component configures the publishing of numeric data.
This component is in the abstractMqttDriver palette under the AbstractMqttPoints folder.
April 6, 2022 49
Chapter 4 Components Abstract MQTT Driver Guide
50 April 6, 2022
Abstract MQTT Driver Guide Chapter 4 Components
abstractMqttDriver-MqttNumericObjectSubscribeExt
This component configures the subscription to numeric data.
This component is in the abstractMqttDriver palette under the AbstractMqttPoints folder.
April 6, 2022 51
Chapter 4 Components Abstract MQTT Driver Guide
In addition to the standard properties (Status, Fault Cause and Enabled) these properties are unique to this
component.
52 April 6, 2022
Abstract MQTT Driver Guide Chapter 4 Components
abstractMqttDriver-MqttStringObjectPublishExt
This component configure the properties that publish string data.
This component is in the abstractMqttDriver palette under the AbstractMqttPoints folder.
Figure 17 Mqtt String Object Publish Ext properties
April 6, 2022 53
Chapter 4 Components Abstract MQTT Driver Guide
54 April 6, 2022
Abstract MQTT Driver Guide Chapter 4 Components
abstractMqttDriver-MqttStringObjectSubscribeExt
This component configures the properties for subscribing string data.
This component is in the abstractMqttDriver palette under the AbstractMqttPoints folder.
April 6, 2022 55
Chapter 4 Components Abstract MQTT Driver Guide
56 April 6, 2022
Abstract MQTT Driver Guide Chapter 4 Components
abstractMqttDriver-MqttEnumObjectPublishExt
This component configures the properties for publishing enum data.
This component is in the abstractMqttDriver palette under the AbstractMqttPoints folder.
Figure 19 Mqtt Enum Object Publish Point Ext properties
April 6, 2022 57
Chapter 4 Components Abstract MQTT Driver Guide
58 April 6, 2022
Abstract MQTT Driver Guide Chapter 4 Components
abstractMqttDriver-MqttEnumObjectSubscribeExt
This component configures the properties for subscribing enum data.
This component is in the abstractMqttDriver palette under the AbstractMqttPoints folder.
April 6, 2022 59
Chapter 4 Components Abstract MQTT Driver Guide
60 April 6, 2022
Abstract MQTT Driver Guide Chapter 4 Components
April 6, 2022 61
Chapter 4 Components Abstract MQTT Driver Guide
62 April 6, 2022
Chapter 5 Plugins
Topics covered in this chapter
♦ Abstract Mqtt Driver Device Ux Manager
♦ Mqtt Client Driver Point Manager
Plugins provide views of components and can be accessed in many ways. For example, double-click a compo-
nent in the Nav tree to see its default view. In addition, you can right-click on a component and select from its
Views menu.
For summary documentation on any view, select Help→On View (F1) from the menu or press F1 while the view
is open.
Buttons
• New Folder creates a new folder for devices.
• New creates a new device record in the database.
April 6, 2022 63
Chapter 5 Plugins Abstract MQTT Driver Guide
To open this view, right-click Points container and select Views→Mqtt Client Driver Point Manager.
Discovered pane
As in other manager views, when you click Discover this manager goes to Learn mode, splits into two panes,
and executes a discover job. Discover also returns multiple objects, each of which occupies one row in this
view.
Following are the columns for Discovered pane
Database Pane
Following are the columns and buttons for database pane.
64 April 6, 2022
Abstract MQTT Driver Guide Chapter 5 Plugins
Local point Displays the path where the points are located.
Buttons
• New Folder creates a new folder for devices.
• New creates a new device record in the database.
• Edit opens the device’s database record for updating.
• Discover runs a discover job to locate installed devices, which appear in the Discovered pane. This view
has a standard appearance that is similar to all EC-NetAX Pro Device Manager views.
• Cancel ends the current discovery job.
• Add inserts a record for the discovered and selected device in the database.
• Match associates a discovered device with a record that is already in the database.
• TagIt associates metadata, such as location or unique configuration with the object.
April 6, 2022 65
Chapter 5 Plugins Abstract MQTT Driver Guide
66 April 6, 2022
Chapter 6 Windows
Topics covered in this chapter
♦ New Device Windows
♦ Add point windows
Windows create and edit database records or collect information when accessing a component. You access
them by dragging a component from a palette into a station or by clicking a button.
Windows do not support On View (F1) and Guide on Target help. To learn about the information each con-
tains, search the help system for key words.
To access these windows, expand Config→Drivers, double-click AbstractMqttDriverNetwork and click New.
April 6, 2022 67
Chapter 6 Windows Abstract MQTT Driver Guide
68 April 6, 2022
Abstract MQTT Driver Guide Chapter 6 Windows
April 6, 2022 69
Chapter 6 Windows Abstract MQTT Driver Guide
70 April 6, 2022
Index
A publish point ....................................................57
subscribe point ................................................59
Abstract MQTT Driver..........................................25
Abstract Mqtt Driver Device Ux Manager...............63
abstractMqttDriver-AbstractMqttDevice.................33
abstractMqttDriver-AbstractMqttDriverNetwork......31 G
abstractMqttDriver-AwsMqttAuthenticator .............35 GCP........................................................ 17, 19, 21
abstractMqttDriver-AzureIotSasToken ..................38 GCP Authenticator ..............................................17
abstractMqttDriver-AzureMqttSasAuthenticator .....36 GCP Console......................................................22
abstractMqttDriver-AzureSasTokenParameters .....38 GcpMqttDevice ............................................. 20, 33
abstractMqttDriver-GcpAuthenticator....................41 guide....................................................................7
abstractMqttDriver-GcpIotParameters ..................42
abstractMqttDriver-GenericMqttAuthenticator........39
abstractMqttDriver-MqttCallbackRouter ................43 I
abstractMqttDriver-
MqttClientDriverDeviceFolder.............................44 introduction...........................................................9
abstractMqttDriver-
MqttClientDriverPointDeviceExt..........................44
abstractMqttDriver-MqttClientDriverPointFolder.....44 L
abstractMqttDriver-TokenParameters ...................43
legal notices .........................................................2
authenticator
license requirement .............................................10
adding............................................................. 11
default.............................................................39
authenticators .......................................... 10, 35, 41
AwsMqttDevice ...................................................33 M
Azure SAS tokens Microsoft Azure...................................................25
authentication..................................................25 Abstract MQTT driver .......................................25
Microsoft Azure IoT Hub ......................................25
MQTT ..................................................................9
B Mqtt Client Driver Point Manager ..........................64
Boolean
publish point ....................................................45
subscribe point ................................................47 N
broker ..................................................................9 network ..............................................................10
component ......................................................31
New device window.............................................67
C New point ...........................................................67
certificate authentication ...................................... 11 numeric
client ....................................................................9 publish point ....................................................49
components.................................................. 31, 38 subscribe point ................................................51
Connecting Abstract MQTT Driver to Microsoft
Azure IoT Hub ...................................................25
P
plugins ...............................................................63
D PointCallbackHandler..........................................44
DefaultMqttDevice...............................................33 points
device ..................................................................9 adding.............................................................14
adding............................................................. 11 discovering......................................................12
components .............................................. 33, 36 publish ........................................................... 9, 14
document change log ............................................7
R
E requirements ......................................................10
enum
April 6, 2022 71
Index Abstract MQTT Driver Guide
S
secure communication......................................... 11
Setting up Azure IoT Hub on Azure portal..............25
Setting up station to connect to Azure IoT Hub ......27
software version..................................................10
string
publish point ....................................................53
subscribe point ................................................55
subscribe..............................................................9
W
windows .............................................................67
72 April 6, 2022
Index Abstract MQTT Driver Guide
73 April 6, 2022
Abstract MQTT_UG_15_EN