The SICON.OS Public MQTT API serves live changes for devices and their associated data such as events, production status, maintenance status, new parameter values or reports.
sicon-test.local
in the examples below) MQTT_HOST
and MQTT_PORT
to your container Test broker
Secure connection (TLS) is available through port 443 via WebSocket
Test broker
WebSocket may have HTTP overhead and reduced feature set depending on library
Reports are device datapoints that are captured after every cycle. X and Y values represent the axis they belong to. X is additional to time, Y are individual values. If the device does not provide cyclic data, reports are triggered every two seconds Reports have to be configured via Sicon Device Description
The ID of the device. More information about the device can be obtained via the Rest API
Accepts the following message:
{
"X_1": "string",
"X_2": "string",
"X_3": "string",
"X_4": "string",
"Y_1": "string",
"Y_2": "string",
"Y_3": "string",
"Y_4": "string",
"Y_5": "string",
"Y_6": "string",
"Y_7": "string",
"Y_8": "string",
"Y_9": "string",
"Y_10": "string",
"Y_11": "string",
"Y_12": "string",
"Y_13": "string",
"Y_14": "string",
"Y_15": "string",
"Y_16": "string",
"Y_17": "string",
"Y_18": "string",
"Y_19": "string",
"Y_20": "string",
"Y_21": "string",
"Y_22": "string",
"Y_23": "string",
"Y_24": "string",
"Y_25": "string",
"Y_26": "string",
"Y_27": "string",
"Y_28": "string",
"Y_29": "string",
"Y_30": "string"
}
Command to request sending of postObservation
for 10 seconds
The ID of the device. More information about the device can be obtained via the Rest API
Accepts the following message:
Observation data represents all live values from the group Observation. Has to be started with startObservation
The ID of the device. More information about the device can be obtained via the Rest API
Accepts the following message:
{
":MQTTLabel": {
"Unit": "string",
"Value": "string"
}
}
Write parameters to a Index.Subindex tuple with the desired value.
The ID of the device. More information about the device can be obtained via the Rest API
Accepts the following message:
{
"Index.Subindex": "string"
}
Used as response topic to putStatData
The payload encodes success of writing the indices ## Result codes
The ID of the device. More information about the device can be obtained via the Rest API
Accepts the following message:
{
"Index.Subindex": {
"value": "string",
"result": 999
}
}
Processdata sent as input to the machine process
The ID of the device. More information about the device can be obtained via the Rest API
Accepts the following message:
{
":MQTTLabel": {
"Unit": "string",
"Value": 0
}
}
Processdata sent as result of the machine process
The ID of the device. More information about the device can be obtained via the Rest API
Accepts the following message:
{
":MQTTLabel": {
"Unit": "string",
"Value": 0
}
}
Events notify of changes in the machine state. e.g. warnings of wrong usage, production status change, configuration requiremenmts, productivity tips
The ID of the device. More information about the device can be obtained via the Rest API
Accepts the following message:
{
"code": 0,
"mode": "APPEARS",
"message": "string",
"timestamp": "string",
"timestampAPPEARS": "string",
"DeltaCounter": 0,
"ID": 0,
"type": "Notification",
"EventStrings": {
"Name": "string",
"Remark": "string",
"Description": "string",
"Cause": "string",
"Impact": "string",
"Solution": "string"
}
}
Notifies of status of a firmware update
The ID of the device. More information about the device can be obtained via the Rest API
Accepts the following message:
{
"Status": "Fail",
"Message": "string"
}
complete device data on registration sent
The ID of the device. More information about the device can be obtained via the Rest API
Accepts the following message:
{
"Active": "string",
"allowDelete": true,
"AllowFirmwareUpload": true,
"AncestorMainDevID": 0,
"ConnectionState": true,
"Description": "string",
"DeviceClassID": 0,
"DeviceDescription": "string",
"DeviceDescriptionAvailable": true,
"DeviceDescriptionIconName": "string",
"DeviceID": 0,
"DeviceSubType": "string",
"DeviceType": "string",
"DocumentationNames": "string",
"ExportCloud": true,
"GuiDD_ID": 0,
"Hidden": true,
"IconFileName": "string",
"ID": 0,
"LocationID": 0,
"ManuallyDeactivated": true,
"MQTT_Protocol": "string",
"Name": "string",
"ParentDevID": 0,
"PDbitLengthIn": true,
"PDbitLengthObserve": true,
"PDbitLengthOut": true,
"PictureFileName": "string",
"ProductID": "string",
"ProductName": "string",
"RegStatusID": 0,
"SampleRate": "string",
"SerialNumber": "string",
"ShortName": "string",
"Subinterface": "string",
"UID": "string",
"VendorID": 0
}
complete device data on disconnect sent
The ID of the device. More information about the device can be obtained via the Rest API
Accepts the following message:
{
"Active": "string",
"allowDelete": true,
"AllowFirmwareUpload": true,
"AncestorMainDevID": 0,
"ConnectionState": true,
"Description": "string",
"DeviceClassID": 0,
"DeviceDescription": "string",
"DeviceDescriptionAvailable": true,
"DeviceDescriptionIconName": "string",
"DeviceID": 0,
"DeviceSubType": "string",
"DeviceType": "string",
"DocumentationNames": "string",
"ExportCloud": true,
"GuiDD_ID": 0,
"Hidden": true,
"IconFileName": "string",
"ID": 0,
"LocationID": 0,
"ManuallyDeactivated": true,
"MQTT_Protocol": "string",
"Name": "string",
"ParentDevID": 0,
"PDbitLengthIn": true,
"PDbitLengthObserve": true,
"PDbitLengthOut": true,
"PictureFileName": "string",
"ProductID": "string",
"ProductName": "string",
"RegStatusID": 0,
"SampleRate": "string",
"SerialNumber": "string",
"ShortName": "string",
"Subinterface": "string",
"UID": "string",
"VendorID": 0
}
external triggered registration e.g. from plug or app
The ID of the device. More information about the device can be obtained via the Rest API
Accepts the following message:
{
"Active": "string",
"allowDelete": true,
"AllowFirmwareUpload": true,
"AncestorMainDevID": 0,
"ConnectionState": true,
"Description": "string",
"DeviceClassID": 0,
"DeviceDescription": "string",
"DeviceDescriptionAvailable": true,
"DeviceDescriptionIconName": "string",
"DeviceID": 0,
"DeviceSubType": "string",
"DeviceType": "string",
"DocumentationNames": "string",
"ExportCloud": true,
"GuiDD_ID": 0,
"Hidden": true,
"IconFileName": "string",
"ID": 0,
"LocationID": 0,
"ManuallyDeactivated": true,
"MQTT_Protocol": "string",
"Name": "string",
"ParentDevID": 0,
"PDbitLengthIn": true,
"PDbitLengthObserve": true,
"PDbitLengthOut": true,
"PictureFileName": "string",
"ProductID": "string",
"ProductName": "string",
"RegStatusID": 0,
"SampleRate": "string",
"SerialNumber": "string",
"ShortName": "string",
"Subinterface": "string",
"UID": "string",
"VendorID": 0
}
Notifies of status of a device registration The RegStatusID encapsulates the new status of the device ## IDs
The ID of the device. More information about the device can be obtained via the Rest API
Accepts the following message:
{
"OldRegStatusID": 0,
"NewRegStatusID": 0,
"AncestorMainDevID": 0
}
Device was removed from the network physically or manually via UI
The ID of the device. More information about the device can be obtained via the Rest API
Accepts the following message: