io
General purpose IO available on each io (io0 to io11).
request: input
Related item
path | type | conditions | description |
---|---|---|---|
ioX |
string |
|
// Json Example
[
{
"io0": "get"
}
]
request: input_detail
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
}
}
]
request: output
path | type | conditions | description |
---|---|---|---|
ioX |
boolean |
|
// Json Example
[
{
"io0": true
}
]
request: output_detail
path | type | conditions | description |
---|---|---|---|
ioX.direction |
string |
|
|
ioX.value |
boolean |
|
// Json Example
[
{
"io0": {
"direction": "output",
"value": true
}
}
]
request: output_type
path | type | conditions | description |
---|---|---|---|
ioX.output_type |
string |
|
drive type |
// Json Example
[
{
"io0": {
"output_type": "push-pull5v"
}
}
]
request: pull_type
path | type | conditions | description |
---|---|---|---|
ioX.pull_type |
string |
|
// Json Example
[
{
"io0": {
"pull_type": "pull-up5v"
}
}
]
request: deinit
path | type | conditions | description |
---|---|---|---|
ioX |
null |
|
// Json Example
[
{
"io0": null
}
]
response: get
path | type | conditions | description |
---|---|---|---|
ioX |
boolean |
|
//Response Example
[
{
"io0": true
}
]
response: warning
path | type | conditions | description |
---|---|---|---|
ioX.warning.message |
string |
|
io warning |
//Response Example
[
{
"io0": {
"warning": {
"message": "Heavy output"
}
}
}
]
response: error
path | type | conditions | description |
---|---|---|---|
ioX.error.message |
string |
|
io warning |
//Response Example
[
{
"io0": {
"error": {
"message": "Heavy output"
}
}
}
]