forked from danielecioffo/SmartSauna
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommands.txt
54 lines (35 loc) · 1.48 KB
/
commands.txt
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
CoAP Network:
cd contiki-ng/examples/rpl-border-router/
make TARGET=cooja connect-router-cooja
MQTT network:
sudo ssh -i ~/key -p 2022 [email protected]
cd contiki-ng/examples/rpl-border-router
make TARGET=nrf52840 BOARD=dongle border-router.dfu-upload PORT=/dev/ttyACM22
make TARGET=nrf52840 BOARD=dongle connect-router PORT=/dev/ttyACM22
sudo ssh -i ~/key -p 2022 [email protected]
sudo mosquitto -c /etc/mosquitto/mosquitto.conf
sudo ssh -i ~/key -p 2022 [email protected]
cd contiki-ng/examples/humidity/
make TARGET=nrf52840 BOARD=dongle humidity-analyzer.dfu-upload PORT=/dev/ttyACM74
make login TARGET=nrf52840 BOARD=dongle PORT=/dev/ttyACM74
sudo ssh -i ~/key -p 2023 [email protected]
cd contiki-ng/examples/temperature/
make TARGET=nrf52840 BOARD=dongle temperature-device.dfu-upload PORT=/dev/ttyACM23
make login TARGET=nrf52840 BOARD=dongle PORT=/dev/ttyACM23
Collector:
sudo systemctl stop mosquitto.service
sudo ssh -L 1883:127.0.0.1:1883 -p 2022 -i ~/key [email protected]
cd Documents/SmartSauna/SmartSaunaCollector/
mvn install
java -jar target/SmartSaunaCollector-1.0-SNAPSHOT.jar
/* *********************************************************************** */
To test the broker:
mosquitto_sub -h fd00::1 -t humidity
mosquitto_pub -h fd00::1 -t humidifier -m INC
To see the devices connected to the Border Router:
wget http://[fd00::f6ce:36b4:3353:18c9]
MySQL:
mysql -u root -proot
use smart_sauna
To export DB:
mysqldump -u root -proot smart_sauna > dump.sql