request: wait
| path |
type |
conditions |
description |
system.wait |
integer |
|
wait time (ms) |
// Json Example
[
{
"system": {
"wait": 500
}
}
]
| path |
type |
conditions |
description |
system.reset |
boolean |
|
|
// Json Example
[
{
"system": {
"reset": true
}
}
]
| path |
type |
conditions |
description |
system.reboot |
boolean |
|
|
// Json Example
[
{
"system": {
"reboot": true
}
}
]
circuit IO check
| path |
type |
conditions |
description |
system.self_check |
boolean |
|
|
// Json Example
[
{
"system": {
"self_check": true
}
}
]
reset obniz Board when obniz Board gone to offline.
| path |
type |
conditions |
description |
system.keep_working_at_offline |
boolean |
|
|
// Json Example
[
{
"system": {
"keep_working_at_offline": true
}
}
]
request: ping
| path |
type |
conditions |
description |
system.ping.key |
dataArray |
|
|
// Json Example
[
{
"system": {
"ping": {
"key": [16, 34, 242]
}
}
}
]
| path |
type |
conditions |
description |
system.sleep_seconds |
integer |
|
sleep time (seconds) |
// Json Example
[
{
"system": {
"sleep_seconds": 500
}
}
]
| path |
type |
conditions |
description |
system.sleep_minute |
integer |
|
sleep time (minute) |
// Json Example
[
{
"system": {
"sleep_minute": 500
}
}
]
| path |
type |
conditions |
description |
system.sleep_io_trigger |
boolean |
|
true:Wake up on rising edge false:Wake up on falling edge |
// Json Example
[
{
"system": {
"sleep_io_trigger": true
}
}
]
| path |
type |
conditions |
description |
system.clock |
integer |
|
Set the clock (Unix timestamp in milliseconds). This will be set to device immediately and used as device timestamp |
// Json Example
[
{
"system": {
"clock": 1592171234567
}
}
]
| path |
type |
conditions |
description |
system.queue_mode.interval |
integer |
|
Set interval of transmission queue of device. Unit is milliseconds. Default is 0ms |
system.queue_mode.timestamp |
string |
- enum
"none""unix_seconds""unix_milliseconds"
|
Set timestamp mode. In timestamp mode, device add timestamp to every commands. Default is none. sec use 4 bytes and millisec use 8 bytes |
// Json Example
[
{
"system": {
"queue_mode": {
"interval": 1000,
"timestamp": "none"
}
}
}
]
response: pong
| path |
type |
conditions |
description |
system.pong.key |
dataArray |
|
|
//Response Example
[
{
"system": {
"pong": {
"key": [16, 34, 242]
}
}
}
]
| path |
type |
conditions |
description |
system.timestamp |
number |
|
The timestamp in milliseconds since epoch (1970-01-01T00:00:00Z). |
//Response Example
[
{
"system": {
"timestamp": 1592171234567
}
}
]
type defines
| type |
conditions |
examples |
description |
| array |
|
[16, 34, 242][100, 255, 21, 0, 21]
|
Binary data array. |