IoT Export
IoT Core Datenmodell
IoT Command Core
3min
allgemeine informationen über kommandos über kommandos können befehle zur steuerung oder konfiguration des gateways verschickt werden jedes kommando wird über eine id identifiziert, die für die zuordnung der antworten genutzt wird feld datentyp beschreibung commandid string eindeutige id des kommandos, diese wird selbst vergeben commandresultdto das ergebnis eines kommandos wird mit diesem dto übertragen das feld "commandid" enthält die id des ursprünglichen kommandos, damit das ergebnis korrekt zugeordnet werden kann zusätzlich sind folgende felder vorhanden feld datentyp beschreibung successful boolean gibt an ob die ausführung erfolgreich war message string eine optionale nachricht um ggf fehlermeldungen zu übertragen datacontainer object optionales iot core datenmodell docid\ aepkicfjmylnpidrbrkrr objekt für die übertragung von rückgabewerten codebeispiele commandresultdto 1 { "commandid" "owncommandid", "successful" true } commandresultdto 2 { "commandid" "owncommandid", "successful" false, "message" "failed to execute command request!" } commandresultdto 3 { "commandid" "owncommandid", "successful" true, "datacontainer" { "nodeid" "ownnodeid", "timestamp" 1704880915, "dto" { "runningexecutorcollections" \[ { "id" "76dd6b1f 3f6a 4c02 b6d7 3539cd03201c", "name" "testexecutor", "description" "", "executors" \[ { "position" 0, "type" "value", "thingid" "91905b50 bf83 4584 a14b d4c2800cec1e", "channelid" "dimmer", "value" { "type" "raw", "value" 100 0 } }, { "position" 1, "type" "delay", "delay" 5000 }, { "position" 2, "type" "state", "thingid" "f5a69feb 59f0 4a44 a243 d2420c84f562", "channelid" "valve", "state" "close" } ] } ] }, "type" "logic scene running" } }