obniz
Version:
obniz sdk for javascript
42 lines (36 loc) • 754 B
YAML
## YAML Template.
##---
$schema: http://json-schema.org/draft-04/schema#
id: "/request/uart/init"
description: "available 0 to 1"
type: object
required: [rx,tx]
uniqueKeys: [rx,tx,rts,cts]
properties:
rx: {$ref: "/pinSetting"}
tx: {$ref: "/pinSetting"}
baud:
type: integer
default: 115200
minimum: 1
maximum: 5000000
description: "baud rate (bps)"
stop:
type: number
enum: [1, 1.5, 2]
default: 1
description: "stop bit width"
bits:
type: integer
enum: [5, 6, 7, 8]
default: 8
parity:
type: string
enum: [off, odd, even]
default: off
flowcontrol:
type: string
enum: [off, rts, cts, rts-cts]
default: off
rts: {$ref: "/pinSetting"}
cts: {$ref: "/pinSetting"}