-
The API acts as a client to this DB server, constructs corresponding DB queries based on received http requests.
-
Each User's local hub communicates with this server for device based operations
A TCP socket is created between this server and the corresponding hub with the hub's address gotten from the device object being updated.
-
API HTTP requests are followed down here for Database CRUD operations and signalling the local hub in use.
-
On HTTP requests to the API, the QueryBuilder is invoked in regard to the service class the called its method. The appropriate query sent to the server socket, processed, and the API is responded to.
ON DB SELECT,INSERT,DELETE or UPDATE the updated object is sent back, suffixed to a status code.
FORMAT OF SERVER RESPONSE TO API
CONTROL MESSAGE CODES
-
Encrypted TCP channels for communication to both API and local hub.
-
Dependency Use MYSQL connector Database JUNIT Junit test framework GSON JSON parsing JSON JSON parsing -
Server classes diagram
-
Overview of the current's server architecture.
-
Communication design for all nodes in the network.
-
- Lukas Olson - Group Leader
- Besnik
- Bujar
- Wills Ekanem