MQTT-Token – dynamische Daten
9 MQTT-Token – dynamische Daten
Es ist in allen MQTT-Nachrichten möglich, dynamische Daten (Tokens) zu nutzen. Die Token werden vor
dem Versenden der Nachrichten vom INspektor durch den realen Wert ersetzt. Mit <% data;
general.hostname %> kann beispielsweise der aktuelle Hostname des INspektors in die MQTT Nachricht
eingefügt werden. Folgende Tokens können genutzt werden:
token name
connection.name
connecsion.clientEd
connection.broker
connection.port
connection. keepAlive
connection. security
connection. username
general. hostname
general. location
general.complex
general.concact
general.serialnumber
general.version
general.timestamp
general.timestampIso8601
network.macActive
network.macPassive
network.ip4Passive
network.ip4Active
diagnosis.jsonTriggerValues
®
PROFINET-INspektor
description
custom name of MOTT connection
given client ID of MOTT connection
address of MOTT broker
TCP/IP port of MOTT broker
keep alive of MOTT connection
indecicates if MOTT connection should secured with TLS or
not
username used for authentication
gives the hostname of the INspektor
gives the installed location
gives the network name of the INspektor
gives the contact person of the INspektor
gives the serial number of the INspektor
firmware version of INspektor
unix time-stamp
ISO 8601 time-stamp
MAC address of active userface
MAC address of passive interface
first IPv4 of passive Interface
first IPv4 of active interface
all relevant information of an event raised by the Inspektor formatted
as JSON
NT - Benutzerhandbuch
example
My Custom Name
profinet-inspektor
test.mosgvitto.org
1883
60
0
userName
profinet-inspektor-nt
Home of INsepktor
PROFINET
info@indu-sol.com
00000001
2.3.0.0
1135167516
2021-10-28E13:11:56+0000
60:61:D6:00:00:01
80:61:D6:00:00:02
192.168.212.212
192.168.213.212
<JSON data>
79