Brainstorming - ParkPal/ParkingAppBackend-Host GitHub Wiki
Created this flowchart to guide development:
Also typed up the following:
Objects for Host Node:
SPACE:
id : INTEGER [unique ID that identifies the parking space]
used : BOOL [boolean value that represents if the spot IS occupied]
active : BOOL [boolean value that represents if the spot CAN BE occupied]
LOT:
id : INTEGER [unique ID that identifies the parking lot]
spaces : Array<INTEGER> [list of the spaces in this lot (listed according to SPACE.id)]
active : BOOL [boolean value that represents if the lot CAN BE occupied]
Functions for Host Node Software:
-readConfig() [See below]
-initConn() [Initialize Control Server Connection]
-initDB() [Check that DB exists, or create and notify]
-confirmConn() [Return true if connection is active, else false]
-dbAdd(SPACE) : bool
-dbUpdate(SPACE) : bool
-dbCheck(SPACE) : bool
-dbDelete(SPACE) : bool
Config File:
- CONTROL_SERVER: IP/DOMAIN-NAME
- UPDATE_FREQ: TIME (in seconds)
- MAX_NODES: INTEGER
Additional File Names May Include: util.py[utilities], conn.py[connection], mesh.py[mesh-connection], etc...
Posted By: Bryan
Post Text Posted By: NAME