Herunterladen Inhalt Inhalt Diese Seite drucken

Mqtt-Topics; Beispiel Für Mqtt-Konfiguration Json-Objekt; Beispiel Für Mqtt-Verbindungs-Status Json-Objekt - hilscher netFIELD Device NFD-6090-PNS-IOLMA/M12 Benutzerhandbuch

Profinet io-device / 8 port io-link-master
Inhaltsverzeichnis

Werbung

Kommunikation
8.3.5

MQTT-Topics

Topic
{prefix}/iolink/v1/mqtt/configuration
{prefix}/iolink/v1/mqtt/connectionstatus
netFIELD Device NFD-6090-PNS-IOLMA\M12 | PROFINET IO-Device / 8 Port IO-Link-Master
DOC210602UM01DE | Revision 1 | Deutsch | 2022-11 | Freigegeben | Öffentlich
Beschreibung
Konfiguration des MQTT-Clients: Client-Modus, Server-Adresse,
Benutzername, Passwort, Last-Will, Keep-Alive-Time
Ein Beispiel finden Sie unter MQTT-Konfiguration.
Konfiguration des MQTT-Clients: Verbindungs-Status, Server-Adresse, Uptime
Ein Beispiel finden Sie unter MQTT-Verbindungs-Status.
Tabelle 82: MQTT-Topics
Beispiele und Details zu den übertragenen JSON-Objekten finden Sie
unten.
MQTT-Konfiguration
JSON key
Beschreibung
clientMode
Aktiviert: "clientMode": "ACTIVE"
Deaktiviert: "clientMode": "INACTIVE"
Tabelle 83: MQTT-Konfiguration, "JSON key"
Beispiel für MQTT-Konfiguration JSON-Objekt:
{  
    "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-Verbindungs-Status
JSON key
Beschreibung
connectionStatus
Mögliche Werte für "connectionStatus":
· CONNECTING
· CONNECTION_ACCEPTED
· CLIENT_INACTIVE
Tabelle 84: MQTT-Verbindungs-Status, "JSON key"
Beispiel für MQTT-Verbindungs-Status JSON-Objekt:
    "connectionStatus" : "CONNECTION_ACCEPTED",
    "serverAddress" : "192.168.2.1./mqttserver",
    "upTime" : 123
}
114/157
© Hilscher 2022

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis