
10 IIoT functionality
10.1 MQTT
Element
Data
type
Description
Example data
qos
number
Selects the "Quality of Service" status
for all published messages.
0 = At most once.
1 = At least once
2 = Exactly once
Table 11: MQTT configuration
MQTT response:
The resulting response is a JSON object with a "status" field. Status should
be "0" if no error occurred and "-1" if there is an error.
In case of an error, the response contains an error array.
The error array contains an error object for each error occurred. The object
consists of a field "Element" which names the config element which caused
the error, and a field "Message" for the error message.
D
A malformed JSON object produces an error.
D
Not existing parameters produce an error.
D
Parameters with a wrong data type produce an error.
It is not allowed to write all available parameters at once. You may write only
one or a limited number of parameters.
Examples:
{"status": -1, "error": [{"Element": "publish-interval", "Message": "Integer
expected"}]}
{"status": 0}
{"status": -1, "error": [{"Element": "root", "Message": "Not a JSON
object"}]}
For more information see chapter
on page 94.
Manual EtherCAT®
Version 1.1 04/2021
93