-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
22 lines (19 loc) · 878 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""
Main files: DataToCSV.py , main.py , DataCalculation.py
Autumn semester project - Copyright (c) 2021 by Max & Mansour.
This program is made for analyzing data coming from the serial port(USB) ->
- If you are using different USB port you must change ; serialPort = serial.Serial(port="COM4")
It's especially made to work together with Arduino's serial monitor and the WiFi-Sniffer code is from https://github.com/ESP-EOS/ESP32-WiFi-Sniffer.
The goal of this program is to have a live and automated dataflow that can be read & stored on the computer,
and measure/calculate how many unique devices are nearby.
"""
# Run ' main.py ' to initialize the whole program.
import DataToCSV
import DataCalculation
import time
while True:
DataToCSV.SaveDatatoCSV()
print("CSV Loaded...")
DataCalculation.SaveDeviceCountToTXT()
print("TXT Loaded...")
time.sleep(5)