We want the MQTT network and password to be taken from environment variables in all cases, if we can.
Today in mobile/src/config/mqttConfig.js the password is hard-coded which is a security flaw.
In general, we have several independent tools, which I like; but they should all use the same configuration approach.
The same is true of ADaMpy/config/adam_config.json and ADamPy/simulators/manual_alarm_test.py.
The ideal think is that in each of these cases the network and password are read from the "environmennt". This should likely be set in a file called ".env" at the home directory. This file should be added to the .gitignore file so that it is not checked in.
If you are unfamiliar with these concepts you can google them or ask me.
We want the MQTT network and password to be taken from environment variables in all cases, if we can.
Today in mobile/src/config/mqttConfig.js the password is hard-coded which is a security flaw.
In general, we have several independent tools, which I like; but they should all use the same configuration approach.
The same is true of ADaMpy/config/adam_config.json and ADamPy/simulators/manual_alarm_test.py.
The ideal think is that in each of these cases the network and password are read from the "environmennt". This should likely be set in a file called ".env" at the home directory. This file should be added to the .gitignore file so that it is not checked in.
If you are unfamiliar with these concepts you can google them or ask me.