This repository has been archived by the owner on May 3, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 61
/
Copy pathrun_demo
executable file
·57 lines (52 loc) · 1.58 KB
/
run_demo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
export no_proxy=127.0.0.1,localhost,${no_proxy}
export NO_PROXY=${no_proxy}
if [ "x$1" == "x" ]; then
echo "HELP: run task, task could be:"
echo " broker start the http broker"
echo " center start the sample center"
echo " hub start the sample hub"
echo " edison start the sample hub in edison (it includes real things)"
echo " skartkit start the startkit hub in edison"
echo " grove start the hub for wio-link"
echo " lattepanda start the hub for lattepanda"
echo " orion start the hub for orion + edison"
echo " tank start the hub for Official Edison Arduino + tank"
echo " tank_romeo start the hub for Edison Romeo + tank"
exit 1
fi
case $1 in
broker)
node ./node_modules/hope-http-broker/bin/start_broker 16666
;;
center)
./center ./node_modules/hope-demo/center/config.json
;;
hub)
./hub ./node_modules/hope-demo/mockup/hub_a/config.json
;;
hub_b)
./hub ./node_modules/hope-demo/mockup/hub_b/config.json
;;
edison)
./hub ./node_modules/hope-demo/edison/config.json
;;
startkit)
./hub ./node_modules/hope-demo/startkit/config.json
;;
grove)
./hub ./node_modules/hope-demo/grove_auto/config.json
;;
lattepanda)
./hub ./node_modules/hope-demo/lattepanda/config.json
;;
orion)
./hub ./node_modules/hope-demo/makeblock/config.json
;;
tank)
./hub ./node_modules/hope-demo/tank/config.json
;;
tank_romeo)
./hub ./node_modules/hope-demo/tank_romeo/config.json
;;
esac