request: init
available 0 to 1
path |
type |
conditions |
description |
uartX.rx |
pinSetting |
|
|
uartX.tx |
pinSetting |
|
|
uartX.baud |
integer |
- default
115200 - 1 ≤ value ≤ 5000000
|
baud rate (bps) |
uartX.stop |
number |
|
stop bit width |
uartX.bits |
integer |
|
|
uartX.parity |
string |
|
|
uartX.flowcontrol |
string |
|
|
uartX.rts |
pinSetting |
|
|
uartX.cts |
pinSetting |
|
|
// Json Example
[
{
"uart0": {
"rx": 0,
"tx": 1,
"baud": 115200,
"stop": 1,
"bits": 8,
"parity": "off",
"flowcontrol": "off",
"rts": 2,
"cts": 3
}
}
]
request: send
path |
type |
conditions |
description |
uartX.data |
dataArray |
|
|
// Json Example
[
{
"uart0": {
"data": [16, 34, 242]
}
}
]
path |
type |
conditions |
description |
uartX |
null |
|
|
// Json Example
[
{
"uart0": null
}
]
path |
type |
conditions |
description |
uartX.data |
dataArray |
|
|
//Response Example
[
{
"uart0": {
"data": [16, 34, 242]
}
}
]
type defines
type |
conditions |
examples |
description |
array |
|
[16, 34, 242] [100, 255, 21, 0, 21]
|
Binary data array. |
type |
conditions |
examples |
description |
integer |
|
|
|