Previous Menu Next
Defining Event Attribute Types

Structured attribute types can be defined with the type keyword. Structured types can be nested to any level, as long as they eventually map onto the basic MDL data types.

In this example, the attribute deviceMsg is of type Response. Response is a structured type, consisting of an integer deviceId attribute and a string status attribute. The format of Response means the attributes deviceId and status are separated by a colon.

MDL example