The HTTP The MQTT interface is used to send and receive data and information from HTTP server. The HTTP resource definition table defines the data that is sent to or received from the defined HTTP data pointsMQTT broker. Within this definition file, the used MQTT brokers have to be specified.
Info |
---|
|
<WorkspaceDirectory>\DataFiles\xio.HTTPMqtt.ResourceDefinitionsBroker.dat |
Col# | Parameter | Description | Scope | Unit | Mandatory / default value |
---|
1 | Name | Mandatory name identifying the MQTT broker within the NETx Server. In combination with Path, it must be unique. | string | None | mandatory |
2 | Path | The structure that is |
the key that identifies the resource within the used to represent the data point |
definitions. The name can freely be chosen but has to . In combination with the Name, it must be unique. | string | None | empty |
3 | IP address | IP address of MQTT broker. | string | None | mandatory |
2mandatoryType | type of encoding. | XML, JSON, URL encoded, Text | None | mandatory | 3 | Resource | it defines the content that is excepted at the HTTP server. The structure and type depends on the used encoding and on the direction (polling or update). Examples and more information can be found within this tutorial. | string | None | Auto-Reconnect | Timeout in milliseconds between connection attempts. | 100 – 65535 | milliseconds | 1000 |
5 | Port | TCP port used for the communication with MQTT broker. | 0 – 65535 | TCP port | 1883 |
6 | Client Username | If the MQTT broker requires authentication of connecting MQTT client, the username must specified here. | string | None | empty |
7 | Client Password | If the MQTT broker requires authentication of connecting MQTT client, the password must specified here. | string | None | empty |
8 | TLS | Defines whether TLS shall be enabled for the communication with the MQTT boker. | boolean | true/false | false |
9 | TLS Version | If TLS is enabled, the used TLS version must be specified here. | None, SSLv3, TLSv1_0, TLSv1_1, TLSv1_2 | none | None |
10 | CA certificate file |
|
|
| empty |
11 | CA certificate password |
|
|
| empty |
12 | Culture info |
|
|
| Invariant culture |
13 | Client certificate file |
|
|
| empty |
14 | Client certificate password |
|
|
| empty |
15 | Keep alive timeout | Timeout in seconds between sending keep alive packets to MQTT broker. |
| seconds | 60 |