Skip to content

Config Data

Note

config_data, config_meta and config_tree objects must always be compatible with each other and most of the time should be treated as one unit.

config_data contains the configuration data of the device.

Model

All Config Data are divided into several groups defined by Config Top-Level Data model (e.g. main). Each of these groups contains specific values that are represented with Config Directive Data model. (e.g. device_name).

Config Directive Data

There are two types of configuration directive values:

  • Scalar Values: There are three supported scalar data types: string, number, boolean.

  • Tabular Values: If the value is type table then it consists of an array of flat objects holding scalar values: [{ string: string|number|boolean }]

Example

{
  "main": {
    "device_name": "Unit 1",
    "admins": [
      {
        "name": "Olaf",
        "age": 45,
        "department_id": 3
      }
    ]
  }
}