IoT Command Core
General information on commands
Section titled “General information on commands”Commands can be used to send commands to control or configure the gateway. Each command is identified by an ID, which is used to assign the responses.
| Field | Data type | Description |
| commandId | String | Unique ID of the command, this is assigned by the user. |
CommandResultDTO
Section titled “CommandResultDTO”The result of a command is transmitted with this DTO. The “commandId” field contains the ID of the original command so that the result can be assigned correctly.
The following fields are also available:
| Field | Data type | Description |
| successful | Boolean | Indicates whether the execution was successful. |
| message | String | An optional message to transmit error messages if necessary. |
| dataContainer | Object | Optional DTOContainer Object for transferring return values. |
code examples
{ "commandId": "OwnCommandId", "successful": true}{ "commandId": "OwnCommandId", "successful": false, "message": "Failed to execute command request!"}{ "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" }}ObjectMetaInfoDTO
Section titled “ObjectMetaInfoDTO”A DTO for transfering additonal, generic informations. For example, it is used to transfer the ID of the created object after a CreateCommand.
| Field | Data type | Description |
| id | String | Unique ID |
| metaInfos | Object | Each field of the optional object represents an information with a specifc value. |
code examples
{ "id": "76dd6b1f-3f6a-4c02-b6d7-3539cd03201c"}{ "id": "76dd6b1f-3f6a-4c02-b6d7-3539cd03201c", "metaInfos": { "TIMESTAMP": "1710402949", "DELETION_KEY": "dx4tvd3F4" }}