UNPKG
botnanajs
Version:
latest (0.1.1)
0.1.1
0.1.0
0.0.2
0.0.1
Botnana Control API for Javascript
github.com/botnana/botnanajs
botnana/botnanajs
botnanajs
/
examples
/
reset_fault.js
13 lines
(9 loc)
•
262 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
"use strict"
;
var
botnana =
require
(
"../index"
); botnana.
debug_level
=
1
; botnana.
once
(
"ready"
,
function
(
) {
// Real-time script API
var
script =
"7 reset-fault 1 7 pds-goal!"
; botnana.
motion
.
evaluate
(script); }); botnana.
start
(
"ws://192.168.7.2:3012"
);