request: echo
It measures pulse response.
Related item
path |
type |
conditions |
description |
measure.echo.io_pulse |
pinSetting |
|
|
measure.echo.io_echo |
pinSetting |
|
|
measure.echo.pulse |
string |
|
|
measure.echo.pulse_width |
number |
- required
- 0.001 ≤ value ≤ 1000
|
|
measure.echo.measure_edges |
integer |
|
|
measure.echo.timeout |
number |
- default
1000 - 0.001 ≤ value ≤ 1000
|
|
// Json Example
[
{
"measure": {
"echo": {
"io_pulse": 0,
"io_echo": 1,
"pulse": "positive",
"pulse_width": 500,
"measure_edges": 2,
"timeout": 1000
}
}
}
]
response: echo
path |
type |
conditions |
description |
measure.echo[].edge |
boolean |
|
rising = true |
measure.echo[].timing |
number |
|
milliseconds from end of pulse |
//Response Example
[
{
"measure": {
"echo": [
{
"edge": true,
"timing": 500
}
]
}
}
]
type defines
type |
conditions |
examples |
description |
integer |
|
|
|