Get status and statistics about a MQTT connection.

Inputs

Parameter

Data type

Description

CnxID

STRING

Identifier of the connection in the fieldbus configuration.

Reset

BOOL

If TRUE, statistic counters are reset to 0.

Outputs

Parameter

Data type

Description

CnxStat

DINT

Connection status:

  • 0 = OK
  • 9999 = invalid connection identifier
  • 1000 = waiting for connection
  • 1001 = TCP connection error
  • 1002 = timeout during connection
  • 1003 = invalid telegram received
  • other = MQTT connection error code

NLinkOK

DINT

Number of correct MQTT telegrams received.

NLinkErr

DINT

Number of incorrect MQTT telegrams received.

NTimeout

DINT

Number of requests failed on timeout.

NRecOK

DINT

Number of received message correctly read by the logic.

NRecLost

DINT

Number of received message lost (unread by the logic).

NPubOK

DINT

Number of successful publish requests.

NPubErr

DINT

Number of failed publish requests.


Created with the Personal Edition of HelpNDoc: Keep Your Sensitive PDFs Safe with These Easy Security Measures