Add handshake protocol
Open, NormalPublic

Description

  • Define JSON format for definition file
  • Load data and fill in current values
  • Send to requesting interface
BAndiT1983 triaged this task as Normal priority.
BAndiT1983 added a comment.EditedFeb 18 2019, 3:23 PM

Preliminary format, current value will be supplied by daemon before sending data to WebUI:

[
  {
    "module": "image_sensor",
    "parameter": "analog_gain",
    "possibleValues": [
      "1/3", "2/3", "1", "3/3", "4/3", "2", "3", "4"
    ],
    "currentValue": "1",
    "defaultValue": "1",
    "lastValue" : "",
    "range": [],
    "readOnly": false
  },
  {
    "module": "image_sensor",
    "parameter": "digital_gain",
    "possibleValues": [
      "1", "2", "3", "4", "6", "8", "10", "12", "14", "16"
    ],
    "currentValue": "1",
    "defaultValue": "1",
    "lastValue" : "",
    "range": [],
    "readOnly": false
  }
]

Flow of daemon initialization and processing (WIP):