To make the reading of sensor data from casas faster. Might be better to move error detection outside of casas_cb function and instead place it in a different function that runs at its own thread. Then casas_cb just writes sensor data into a queue accessible by the new error detection function.
To make the reading of sensor data from casas faster. Might be better to move error detection outside of casas_cb function and instead place it in a different function that runs at its own thread. Then casas_cb just writes sensor data into a queue accessible by the new error detection function.