File tree Expand file tree Collapse file tree 1 file changed +20
-8
lines changed Expand file tree Collapse file tree 1 file changed +20
-8
lines changed Original file line number Diff line number Diff line change 22
22
~~~
23
23
>pip install paho-mqtt
24
24
~~~
25
- 4.Run Main.py
25
+ 4.Create a single line text file named 'server.conf' on the parent directory of Main.py.
26
+ ~~~
27
+ server.conf
28
+ [Format] ipaddress&port&username&password
29
+ [Example] 160.16.xxx.xxx&61613&admin&password
30
+ ~~~
31
+ 5.Run Main.py
26
32
~~~
27
33
>python Main.py
28
34
~~~
29
- 5 .Start Android App
35
+ 6 .Start Android App
30
36
31
- 6 .Now the program is receiving sensor data and estimate smartphone location, also publishing it to MQTT broker.
37
+ 7 .Now the program is receiving sensor data and estimate smartphone location, also publishing it to MQTT broker.
32
38
33
- 7 .If you want to save estimated data as CSV, run GetOutputData.py
39
+ 8 .If you want to save estimated data as CSV, run GetOutputData.py
34
40
~~~
35
41
>python ./data/GetOutputData.py
36
42
~~~
73
79
~~~
74
80
>pip install paho-mqtt
75
81
~~~
76
- 4.Main.pyを起動
82
+ 4.'server.conf'という名前のファイルをMain.pyの親ディレクトリに作成する
83
+ ~~~
84
+ server.conf
85
+ [フォーマット] ipaddress&port&username&password
86
+ [例] 160.16.xxx.xxx&61613&admin&password
87
+ ~~~
88
+ 5.Main.pyを起動
77
89
~~~
78
90
>python Main.py
79
91
~~~
80
- 5 .Androidアプリを起動
92
+ 6 .Androidアプリを起動
81
93
82
- 6 .センサデータを受信し、位置の推定が始まります。推定結果はMQTTブローカーに送信されます。
94
+ 7 .センサデータを受信し、位置の推定が始まります。推定結果はMQTTブローカーに送信されます。
83
95
84
- 7 .推定結果をCSVファイルに保存したい場合は、GetOutputData.pyを起動
96
+ 8 .推定結果をCSVファイルに保存したい場合は、GetOutputData.pyを起動
85
97
~~~
86
98
>python ./data/GetOutputData.py
87
99
~~~
You can’t perform that action at this time.
0 commit comments