Skip to content

MindConnect OPC UA PubSub Service – Samples

Event Data

The sample data message is relevant "c/{clientId}/o/opcua/v3/u/d/e" topic.

Only events are created by this operation. Update and Delete operations are not possible.

Data Set Message

The sample event message is as below:

Sample
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
{
  "networkMessageHeader": {
    "versionFlags": -48,
    "extendedFlags1": {
      "value": 36
    },
    "extendedFlags2": {
      "value": 0
    },
    "publisherId": "PubSubcf88409cce2a45489c41f091ee914329",
    "dataSetClassId": null,
    "uadpversion": 0,
    "groupHeaderEnabled": false,
    "payloadHeaderEnabled": true,
    "timestampEnabled": true,
    "picoSecondsEnabled": false,
    "promotedFieldsEnabled": false,
    "securityEnabled": false,
    "chunkMessage": false,
    "networkMessageType": "DATA_SET_MESSAGE",
    "extendedFlags2Enabled": false,
    "publisherIdEnabled": true,
    "publisherIdDataType": "String",
    "dataSetClassIdEnabled": false,
    "extendedFlags1Enabled": true
  },
  "groupHeader": null,
  "payloadHeader": {
    "count": 1,
    "dataSetWriterIds": [1000]
  },
  "extendedNetworkMessageHeader": {
    "timestamp": {
      "value": 132279579204160000,
      "timeInMillis": 1583484320416,
      "utcCalendar": 1583484320416,
      "localCalendar": 1583484320416,
      "milliSeconds": 13227957920416
    },
    "picoSeconds": 0,
    "promotedFields": null
  },
  "securityHeader": null,
  "payload": {
    "sizes": [0],
    "messages": [{
      "dataSetMessageHeader": {
        "dataSetFlags1": 227,
        "dataSetFlags2": 16,
        "messageSequenceNumber": 0,
        "timestamp": {
          "value": 132279579204140000,
          "timeInMillis": 1583484320414,
          "utcCalendar": 1583484320414,
          "localCalendar": 1583484320414,
          "milliSeconds": 13227957920414
        },
        "picoSeconds": 0,
        "status": 0,
        "configurationVersionDataType": {
          "majorVersion": {
            "value": 123
          },
          "minorVersion": {
            "value": 123
          }
        },
        "timestampEnabled": true,
        "picoSecondsEnabled": false,
        "fieldEncoding": "RAW_DATA",
        "dataSetMessageValid": true,
        "dataSetMessageSequenceNumberEnabled": false,
        "statusEnabled": false,
        "configurationVersionMajorVersionEnabled": true,
        "configurationVersionMinorVersionEnabled": true,
        "dataSetFlags2Enabled": true,
        "dataSetMessageType": "DATA_KEY_FRAME"
      },
      "dataSetMessage": [{
        "fieldValue": [607, true, {
          "value": 132279579204140000,
          "timeInMillis": 1583484320414,
          "utcCalendar": 1583484320414,
          "localCalendar": 1583484320414,
          "milliSeconds": 13227957920414
        }]
      }, {
        "fieldValue": [6861, 8036, {
          "value": 132279579204150000,
          "timeInMillis": 1583484320415,
          "utcCalendar": 1583484320415,
          "localCalendar": 1583484320415,
          "milliSeconds": 13227957920415
        }]
      }],
      "fieldCount": 2
    }]
  },
  "securityFooter": null,
  "signature": {}
}

Event Message

The sample event message is as below:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
{
    "orcat": 607,
    "entityId": "4eb511dd732d485d8a8d92ea4274ea38",
    "typeId": "connint5.connectivity.event.type.SPSEventFT",
    "source": "SPS FT",
    "Prefix": "pre",
    "Unit": "V",
    "value": true,
    "timestamp": "2020-03-06T08:45:20.414Z"
}

Any questions left?

Ask the community


Except where otherwise noted, content on this site is licensed under the MindSphere Development License Agreement.