CREATING AN ADVANTECH CONNECTION
Available since ThingPark X IoT Flow 1.6.13.
The Advantech connector publishes the messages of your Advantech devices to topics of your MQTT broker, and subscribes to a topic of the broker to receive the downlinks.
The data follows this path: LoRaWAN® device → ThingPark Enterprise → ThingPark X IoT Flow connection → your MQTT broker → your Advantech application.
Before you create the connection, you need an MQTT broker reachable from ThingPark X IoT Flow, and its credentials.
Collecting Expected Information
Parameters required
| UI Field | Description |
|---|---|
| Name | Name of the connection. |
| App Arguments | Arguments that represent your Advantech device, passed to the application when it starts, for example WISE-2410. |
| Hostname | Host name or IP address of your MQTT broker, and its port, for example broker.example.com:8883. |
| Protocol | TCP (MQTT without encryption), SSL (MQTT over TLS) or WSS (MQTT over secure WebSockets). Default TCP. |
| CA Certificate | CA certificate file (X.509, .crt) that signed the certificate of your broker. Only if your broker needs it. Does not apply to TCP. |
| Certificate | Client certificate file (X.509, .crt), when your broker authenticates its clients with a certificate. Does not apply to TCP. |
| Private Key | Client private key file (PKCS#8), with the client certificate. Does not apply to TCP. |
| MQTT Username | User name of the connector on your broker. Mandatory with TCP, except on ThingPark Enterprise OCP. |
| MQTT Password | Password of the connector on your broker. Mandatory with TCP, except on ThingPark Enterprise OCP. |
| Published topic pattern | Topic where the connector publishes the uplinks. Default mqtt/things/{DevEUI}/uplink. See Topic Pattern Expression. |
| Subscribed topic pattern | Topic where the connector receives the downlinks. Default mqtt/things/{DevEUI}/downlink. |
| Description | Optional description of the connection. |
Creating a Connection With UI
-
In ThingPark Enterprise, click Connections -> + Add Connection -> ThingPark X IoT Flow.

-
In ThingPark X IoT Flow, click Advantech in the list of connectors.

-
Fill in the form:
- Name: a clear name for the connection, for example
My Advantech Connection. - App Arguments: the arguments that represent your Advantech device, for example
WISE-2410. - Hostname: the host name and port of your broker.
- Protocol: the protocol of your broker: TCP, SSL or WSS.
- CA Certificate: with SSL or WSS, click the attachment button to select the CA certificate file, if your broker needs it.
- Certificate: with SSL or WSS, click the attachment button to select the client certificate file, if your broker needs it.
- Private Key: with SSL or WSS, click the attachment button to select the client private key file, if your broker needs it.
- MQTT Username: the user name of the connector on your broker.
- MQTT Password: the password of the connector on your broker.
- Published topic pattern: keep the default pattern or enter yours.
- Subscribed topic pattern: keep the default pattern or enter yours.
- Description: optional.

- Name: a clear name for the connection, for example
-
Click Create. A notification confirms that the connection has been created, and the connection details open.
-
In the connection details, check that the connection is OPENED (see Connection States).
Parameters marked with * are mandatory.
Creating a Connection With API
The creation of a connection establishes a bidirectional messaging link between ThingPark X IoT Flow and your MQTT broker.
To do this, you need to use the Connections group resource:
POST /connectionsto create a new Connection instancePUT /connectionsto update a Connection instanceDELETE /connectionsto delete a Connection instance
We follow the REST-full API pattern, when updating configuration properties for a connection resource. Thus, you must also provide the whole configuration again.
Example for creation of a new connection instance:
POST /connections
{
"connectorId": "actility-advantech-iot",
"name": "Actility ADVANTECH (TCP) Connection",
"configuration": {
"appargs": "WISE-2410",
"description": "ADVANTECH (TCP) connection example",
"uplinkTopicPattern": "mqtt/things/{DevEUI}/uplink",
"downlinkTopicPattern": "mqtt/things/{DevEUI}/downlink",
"hostName": "localhost:8883",
"protocol": "TCP",
"username": "mycompany",
"password": "{YOUR-MQTT-PASSWORD}"
}
}
The following table lists the properties applicable to a connection instance.
| Property | Expected results |
|---|---|
connectorId | Must be set to actility-advantech-iot. |
configuration/appargs | Arguments that represent your Advantech device, for example WISE-2410. |
configuration/uplinkTopicPattern | Pattern of the topic of the uplinks. |
configuration/downlinkTopicPattern | Pattern of the topic of the downlinks. |
configuration/hostName | Host name or IP address and port of your MQTT broker. |
configuration/protocol | Protocol of the connection with your MQTT broker: SSL (MQTT over TLS), WSS (MQTT over secure WebSockets) or TCP (MQTT over TCP without encryption). |
configuration/username | User name to access your MQTT broker. |
configuration/password | Password to access your MQTT broker. |
configuration/trustedCaCertficate | Content of the CA certificate file (X.509, .crt format only) that signed the certificate of your MQTT broker. Only required when your broker needs it. The property name is spelled trustedCaCertficate. |
configuration/certificate | Content of the client certificate file (X.509, .crt format only) used to connect to your MQTT broker. Only required when you use two-factor authentication (login and password, plus client certificate). |
configuration/privateKey | Content of the client private key file (PKCS#8 format only) used to connect to your MQTT broker. Only required when you use two-factor authentication (login and password, plus client certificate). |
configuration/connectionTimeout | Maximum time to establish a connection, in milliseconds. Default 15000, from 1000 to 60000. |
configuration/actionTimeout | Maximum time of each action, such as publishing a message or subscribing to a topic, in milliseconds. Default 1000, up to 10000. |
All properties are not present in this example. You can check the rest of these properties in the common parameters section.
Associating Devices With the Connection
In ThingPark Enterprise, open Devices, select a device, and add the connection to the Connections of the device. You can also select the connection when you create a device, or for many devices at once with a CSV file in Devices -> Bulk Operations.
Limitations
The Advantech connector is limited to Advantech devices.
Troubleshooting
There is no known issue with the Advantech connector.