Communication
116/154
10.3.5
MQTT topics
Topic
Description
{prefix}/iolink/v1/mqtt/configuration
Read configuration of MQTT client: Client mode, server address, user name,
user name, password, last will, keep alive time
For an example, see MQTT Configuration.
{prefix}/iolink/v1/mqtt/connectionstatus
Configuration of MQTT client: Connection status, server address, up time
For an example, see MQTT Connection Status.
Table 73: MQTT topics
You find examples and details about the transferred JSON objects below.
MQTT Configuration
JSON key
Description
clientMode
Activated: "clientMode": "ACTIVE"
Deactivated: "clientMode": "INACTIVE"
Table 74: MQTT Configuration, "JSON key"
Example for the MQTT configuration JSON object:
{
"clientMode" : "ACTIVE",
"serverAddress" : "192.168.2.1./mqttserver",
"username" : "iolink_json",
"password" : "123456",
"lastWill" : {
"topic" : "my temperature sensor",
"message" : "Process data transfer stopped",
"qoS" : "0_ONLY_ONCE",
"retain" : true
},
"keepAliveTime" : 0
}
MQTT Connection Status
JSON key
Description
connectionStatus
Possible values for "connectionStatus":
·
CONNECTING
·
CONNECION_ACCEPTED
·
CLIENT_INACTIVE
Table 75: MQTT Connection Status, "JSON key"
Example for the MQTT connection status JSON object:
{
"connectionStatus" : "CONNECTION_ACCEPTED",
"serverAddress" : "192.168.2.1./mqttserver",
"upTime" : 123
}
NFD-3090-EIS-IOLM\W | Hardware, installation and commissioning
DOC200701UM02EN | Revision 2 | English | 2021-08 | Released | Public
© Hilscher 2020 - 2021