switch
the switch embed on obniz Board itself. If it's state is changed, notification will be fired.
request: get
Related item
path | type | conditions | description |
---|---|---|---|
switch |
string |
|
// Json Example
[
{
"switch": "get"
}
]
response: change
path | type | conditions | description |
---|---|---|---|
switch.state |
string |
|
|
switch.action |
string |
|
this is optional and added when user request |
//Response Example
[
{
"switch": {
"state": "none",
"action": "get"
}
}
]