Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

Commit

Permalink
serial: fix poll_interval in the schema.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan4th committed May 12, 2016
1 parent 2ed8d5e commit 2cbc010
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
6 changes: 6 additions & 0 deletions wb-mqtt-serial/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
wb-mqtt-serial (1.15.1) stable; urgency=medium

* schema fix

-- Ivan Shvedunov <[email protected]> Tue, 12 May 2016 03:36:44 +0300

wb-mqtt-serial (1.15.0) stable; urgency=medium

* scheduler merge
Expand Down
21 changes: 19 additions & 2 deletions wb-mqtt-serial/wb-mqtt-serial.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"poll_interval": {
"type": "integer",
"title": "Desired poll interval (ms)",
"description" : "This option specifies the desired interval between two consecutive polls of each channel (or total duration of the poll cycle). This works by sleeping for t = [poll_interval] / [number_of_registers] after each read operation. Writes are not affected by this setting and are performed as soon as possible.",
"description" : "This option specifies the desired interval between two consecutive polls of each channel (or total duration of the poll cycle). Writes are not affected by this setting and are performed as soon as possible.",
"minimum": 0,
"default": 20,
"propertyOrder": 7
Expand Down Expand Up @@ -265,9 +265,18 @@
"description": "Value corresponding to the 'On' state of the switch",
"$ref": "#/definitions/serial_int",
"propertyOrder": 9
},
"poll_interval": {
"type": "integer",
"title": "Desired poll interval (ms)",
"description" : "This option specifies the desired interval between two consecutive polls of the channel",
"minimum": 0,
"default": 20,
"propertyOrder": 10
}
},
"required": ["name", "reg_type", "address"],
// FIXME: require "reg_type" and "address" for non-templated devices
"required": ["name"],
"defaultProperties": ["name", "type", "reg_type", "address", "format", "scale"],
"_format": "grid"
},
Expand All @@ -294,6 +303,14 @@
"minItems": 1,
"_format": "table",
"propertyOrder": 3
},
"poll_interval": {
"type": "integer",
"title": "Desired poll interval (ms)",
"description" : "This option specifies the desired interval between two consecutive polls of the channel",
"minimum": 0,
"default": 20,
"propertyOrder": 4
}
},
"required": ["name", "consists_of"]
Expand Down

0 comments on commit 2cbc010

Please sign in to comment.