Packet Information
Hardware
SCU
Disc:
- Information sent from the SCU to the HUB
Structure:
String
- formatted as Soil, Temperature, Lux
Soil: 16bit int
Teemperature: float
Lux: float
Notes:
- Comma delimited
- Used to report data from individual SCU's to centralized HUB's
- Sent every Δt
HUB
Disc:
- Information sent from the HUB to the Database
Structure: JSON
sensorID: int
HUBID: int
Temperature: float
Moisture: int
Lux: float
Notes:
- Sent via function call 'to_fb()' (Firebase library function)
- sensorID and HUBID are unique per sensor/HUB
Firebase
User
Structure: Struct
UID: String
- Email: String
- Username: String
- HUBS
- HubName: String
- HubSerial: String
- SENSORS
- SensorName: String
- SensorSerial: String
Notes:
- Used to store user information
Serial Map
Structure: Struct
HubSerial: String
- HubName: String
- User: String
SensorSerial: String:
- SensorName: String
- User: String
Notes:
pyDocs
SCU docsBroker.py docs
Bluetooth.py docs