sfuphantom / DAQ

0 stars 0 forks source link

Implementing graceful shutdown and pause manually and over MQTT #4

Closed mkamalel closed 2 years ago

mkamalel commented 2 years ago

DAQ System fully shuts off when it receives a SIGINT (ie. from a ctrl+c) or a SIGTERM. It does the following:

MQTT command to do the shutdown is implemented. Pause over MQTT is also implemented and does the following:

Due to no GPS hardware, that was not tested. Otherwise, rest of the functionalities are tested, there is a testing script in utils to send the commands over MQTT. The script and the DAQ both connect to a cloud MQTT broker I set up such that anyone can test with MQTT at any time.