General purpose IO available on each io (io0 to io11).
Related item
path |
type |
conditions |
description |
ioX |
string |
|
|
// Json Example
[
{
"io0": "get"
}
]
Related item
path |
type |
conditions |
description |
ioX.direction |
string |
|
|
ioX.stream |
boolean |
|
enable stream callback when value change |
// Json Example
[
{
"io0": {
"direction": "input",
"stream": false
}
}
]
path |
type |
conditions |
description |
ioX |
boolean |
|
|
// Json Example
[
{
"io0": true
}
]
path |
type |
conditions |
description |
ioX.direction |
string |
|
|
ioX.value |
boolean |
|
|
// Json Example
[
{
"io0": {
"direction": "output",
"value": true
}
}
]
path |
type |
conditions |
description |
ioX.output_type |
string |
- required
- enum
"push-pull5v" "push-pull3v" "open-drain"
|
drive type |
// Json Example
[
{
"io0": {
"output_type": "push-pull5v"
}
}
]
path |
type |
conditions |
description |
ioX.pull_type |
string |
- required
- enum
"pull-up5v" "pull-up3v" "pull-down" "float"
|
|
// Json Example
[
{
"io0": {
"pull_type": "pull-up5v"
}
}
]
path |
type |
conditions |
description |
ioX |
null |
|
|
// Json Example
[
{
"io0": null
}
]
response: get
path |
type |
conditions |
description |
ioX |
boolean |
|
|
//Response Example
[
{
"io0": true
}
]
path |
type |
conditions |
description |
ioX.warning.message |
string |
|
io warning |
//Response Example
[
{
"io0": {
"warning": {
"message": "Heavy output"
}
}
}
]
path |
type |
conditions |
description |
ioX.error.message |
string |
|
io warning |
//Response Example
[
{
"io0": {
"error": {
"message": "Heavy output"
}
}
}
]