Configuration Details

The parameters in the configuration file are shown below:
Table 1.
FieldTypeRequiredDefault
listenTopicStringYes
publishTopicStringYes
tagsObjectYes
log_levelStringNooff
clientidStringYes
qosIntegerNo

listenTopic

The listenTopic field determines the MQTT topic on which this app listens for incoming data.

publishTopic

The publishTopic field determines the MQTT topic on which this app publishes the filtered data.

tags

The tags field defines the variables on which deadband is to be applied. The tags is an object of the following structure.
Table 2.
FieldTypeRequired
<variable name 1>StringYes
<variable name 2>StringNo
...StringNo
The fields <variable name 1>, <variable name 2>, etc. represent individual variable names for which the values are objects that have the deadband details below.
Table 3.
FieldTypeRequired
typeStringYes
valueAny numericYes
timeoutInMSIntegerYes
  • type determines the type of deadband; possible values are absolute and percent
  • value is the deadband value to be used
  • timeoutInMS is the timeout value (in milliseconds) to be used during deadband calculation

log_level

For details about the log_level and log_name fields, see the Generic CDP Blocks section of the Protocol Adapters documentation page.

clientid

The clientid is used to specify the name of the client in the MQTT client options. It can be any unique string.

qos

The qos field is used to specify the qos (quality of service) to the MQTT client during publishing.