This is a light version of the flask server made for the ESP team to enable testing.
The server requires all of the following installed on the machine running the server.
Install mosquitto from https://mosquitto.org/download/ by following the official instructions. Once mosquitto is up and running on the machine simply run the code for the flask server on the machine. You can confirm if the flask server is setup by opening http://127.0.0.1:5000.
The code expects the credentials for the DB to be located at "/isdProjectImports/credentials.py".
The code should look as follows:
dbUsername = ''
dbPassword = ''
dbHostname = ''
dbPort = ''
dbName = ''