Skip to main content

CREATING AN ADVANTECH CONNECTION

Collecting Expected Information

Parameters required

FieldDescription
App argumentsRepresent your Advantech device.

Creating a Connection With UI

  1. Click Connections -> Create -> ThingPark X IoT Flow create

  2. Then, a new page will open. Select the connection type: ADVANTECH. select

  3. Fill in the form as in the example below and click on Create. filled_form filled_form_2

Note

Parameters marked with * are mandatory.

  1. A notification appears on the upper right side of your screen to confirm that the application has been created.

  2. After creating the application, you will be redirected to the connection details.

Creating a Connection With API

The creation of a connection establishes a unidirectional messaging transport link to the cloud provider.

To do this, you need to use the Connections group resource:

  • POST/connections to create a new Connection instance
  • PUT/connections to update a Connection instance
  • DELETE/connections to delete a Connection instance
Note

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": "bar"
}
}

The following table lists the properties applicable to a connection instance.

PropertyExpected results
connectorIdMust be set to actility-advantech-iot.
configuration/appargsYour application arguments
configuration/uplinkTopicPatternDefines a pattern of topic for the Uplink.
configuration/downlinkTopicPatternDefines a pattern of topic for the Downlink.
configuration/hostNameHostname/IP and port of your MQTT Broker.
configuration/protocolProtocol to be used for the connection with your MQTT server, possible values are 'SSL' (MQTT over SSL), 'WSS' (MQTT over secure Web Sockets) or 'TCP' (MQTT over TCP without encryption).
configuration/usernameLogin to access your MQTT Broker.
configuration/passwordLogin to access your MQTT Broker.
configuration/trustedCaCertficateContents of the client CA certificate file (X.509 with .crt format only) used to connect to your MQTT server. Only required when your+ client certificate is not self-sign).
configuration/certificateContents of the client certificate file (X.509 with .crt format only) used to connect to your MQTT server. Only required when you are using double factor authentication (login/password + client certificate).
configuration/privateKeyContents of the client private key file (PKCS#8 format only) used to connect to your MQTT server. Only required when you are using double factor authentication (login/password + client certificate).
configuration/connectionTimeoutMax time needed for establishing a connection. (Default=5000ms, max=10000ms)
configuration/actionTimeoutMax time available for each action like publishing a message or subscribe to a topic. (Default=1000ms, max = 10000ms)
Important note

All properties are not present in this example. You can check the rest of these properties in the common parameters section.

Limitations

Advantech connector is limited to Advantech devices.

Troubleshooting

There are currently no known limitations to the Advantech connector.