{
  "schemaVersion": 1,
  "minEngineVersion": 1,
  "deviceType": 67,
  "name": "Vega L",
  "advertisingNames": [
    "VEGA L"
  ],
  "pairing": "beforeConnect",
  "parameters": [
    {
      "id": 1007,
      "title": "Модель устройства",
      "readonly": true,
      "wire": {
        "type": "uint8",
        "size": 1,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "readOnly",
        "format": "deviceType"
      }
    },
    {
      "id": 1008,
      "title": "Время устройства (UTC)",
      "readonly": false,
      "wire": {
        "type": "uint32",
        "size": 4,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "number",
        "format": "unixSeconds"
      }
    },
    {
      "id": 1009,
      "title": "Версия ПО",
      "readonly": true,
      "wire": {
        "type": "ascii",
        "size": 20,
        "byteOrder": "big",
        "trimZeroPadding": true
      },
      "ui": {
        "editor": "readOnly",
        "format": "firmwareVersion"
      }
    },
    {
      "id": 1018,
      "title": "Температура",
      "readonly": true,
      "wire": {
        "type": "int8",
        "size": 1,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "readOnly",
        "format": "raw",
        "unit": "°C"
      }
    },
    {
      "id": 1019,
      "title": "Заряд батареи",
      "readonly": true,
      "wire": {
        "type": "uint8",
        "size": 1,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "readOnly",
        "format": "raw",
        "unit": "%"
      },
      "constraints": {
        "min": 0,
        "max": 100
      }
    },
    {
      "id": 1053,
      "title": "Внешняя влажность",
      "readonly": true,
      "wire": {
        "type": "uint8",
        "size": 1,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "readOnly",
        "format": "raw",
        "unit": "%"
      }
    },
    {
      "id": 1157,
      "title": "BLE MAC",
      "readonly": true,
      "wire": {
        "type": "mac",
        "size": 6,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "readOnly",
        "format": "mac"
      }
    },
    {
      "id": 271,
      "title": "Уровень сигнала BLE-ADV",
      "readonly": false,
      "wire": {
        "type": "uint8",
        "size": 1,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "choice",
        "format": "raw",
        "options": [
          {
            "value": 0,
            "title": "−40 дБи"
          },
          {
            "value": 1,
            "title": "−20 дБи"
          },
          {
            "value": 2,
            "title": "−16 дБи"
          },
          {
            "value": 3,
            "title": "−12 дБи"
          },
          {
            "value": 4,
            "title": "−8 дБи"
          },
          {
            "value": 5,
            "title": "−4 дБи"
          },
          {
            "value": 6,
            "title": "0 дБи"
          },
          {
            "value": 7,
            "title": "+2 дБи"
          },
          {
            "value": 8,
            "title": "+3 дБи"
          },
          {
            "value": 9,
            "title": "+4 дБи"
          },
          {
            "value": 10,
            "title": "+5 дБи"
          },
          {
            "value": 11,
            "title": "+6 дБи"
          },
          {
            "value": 12,
            "title": "+7 дБи"
          },
          {
            "value": 13,
            "title": "+8 дБи"
          },
          {
            "value": 14,
            "title": "−5 дБи"
          },
          {
            "value": 15,
            "title": "−3 дБи"
          },
          {
            "value": 16,
            "title": "−1 дБи"
          },
          {
            "value": 17,
            "title": "+1 дБи"
          }
        ]
      }
    },
    {
      "id": 285,
      "title": "Опорный RSSI для меток, dBm",
      "readonly": false,
      "wire": {
        "type": "int8",
        "size": 1,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "number",
        "format": "raw"
      },
      "constraints": {
        "min": -120,
        "max": 20
      }
    },
    {
      "id": 286,
      "title": "Период отправки advertising пакетов (мс)",
      "readonly": false,
      "wire": {
        "type": "uint16",
        "size": 2,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "number",
        "format": "raw"
      },
      "constraints": {
        "min": 100,
        "max": 10000
      }
    },
    {
      "id": 311,
      "title": "Тип передаваемой метки",
      "readonly": false,
      "wire": {
        "type": "uint8",
        "size": 1,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "choice",
        "format": "raw",
        "options": [
          {
            "value": 1,
            "title": "iBeacon"
          },
          {
            "value": 4,
            "title": "Vega"
          },
          {
            "value": 6,
            "title": "Vegastone"
          }
        ]
      }
    },
    {
      "id": 312,
      "title": "iBeacon Major",
      "readonly": false,
      "wire": {
        "type": "uint16",
        "size": 2,
        "byteOrder": "big",
        "writeByteOrder": "little"
      },
      "ui": {
        "editor": "number",
        "format": "raw"
      },
      "constraints": {
        "min": 0,
        "max": 65535
      }
    },
    {
      "id": 313,
      "title": "iBeacon Minor",
      "readonly": false,
      "wire": {
        "type": "uint16",
        "size": 2,
        "byteOrder": "big",
        "writeByteOrder": "little"
      },
      "ui": {
        "editor": "number",
        "format": "raw"
      },
      "constraints": {
        "min": 0,
        "max": 65535
      }
    },
    {
      "id": 317,
      "title": "Пароль соединения",
      "readonly": false,
      "sensitive": true,
      "wire": {
        "type": "ascii",
        "size": 6,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "text",
        "format": "raw"
      },
      "constraints": {
        "validators": [
          {
            "kind": "digits",
            "length": 6
          }
        ]
      }
    },
    {
      "id": 352,
      "title": "Ключ Vegastone",
      "readonly": false,
      "sensitive": true,
      "maskValue": false,
      "wire": {
        "type": "hex",
        "size": 32,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "hex",
        "format": "hex"
      }
    },
    {
      "id": 353,
      "title": "Локальный ID",
      "readonly": false,
      "wire": {
        "type": "uint32",
        "size": 4,
        "byteOrder": "big"
      },
      "ui": {
        "editor": "number",
        "format": "raw"
      },
      "constraints": {
        "min": 1,
        "max": 999999999
      }
    }
  ],
  "screens": [
    {
      "kind": "info",
      "title": "Информация",
      "groups": [
        {
          "title": "Текущее состояние",
          "parameterIds": [
            1007,
            1008,
            1009,
            1018,
            1019,
            1053,
            1157
          ]
        }
      ]
    },
    {
      "kind": "settings",
      "title": "Настройки",
      "groups": [
        {
          "title": "Настройки устройства",
          "parameterIds": [
            271,
            285,
            286,
            311,
            312,
            313,
            317,
            352,
            353
          ]
        }
      ]
    }
  ],
  "firmware": {
    "chip": "nrf",
    "dfu": "nordicSecure"
  }
}
