Example properties keyword for type messages
- Last UpdatedSep 04, 2025
- 1 minute read
The properties keyword in a type message creates attribute templates on the element template. Each property becomes a separate attribute template. The properties keyword has its own keywords, which are detailed in Properties keywords reference.
The following is an example value for the properties keyword:
"properties": {
"FactoryId": {
"type": "string",
"isindex": true,
"name": "Factory Index"
},
"FactoryName": {
"type": "string",
"isname": true,
"name": "Factory Name"
},
"Address": {
"type": "string"
},
"Contact": {
"type": "string"
},
"WidgetLevel": {
"type": "Number",
"format": "float64",
"name": "Widget Level",
"description": "A widget is a very special thing.",
"uom": "count",
"minimum": 0,
"maximum": 64,
"interpolation": "discrete"
},
"WidgetColor": {
"reftypeid": "WidgetColorEnum",
"name": "Widget Color",
}
}
These properties create the attribute templates shown in the image below: