Closed islasummer closed 5 years ago
Current solution uses Bernd Porr's Cpp Timer Wrapper to upload values to the server at specific time intervals (every 10 seconds) in the main while loop which reads the sensors. Splitting up readings the sensors into a timing interval or separate thread is less efficient because of the initialising the BME680 structure and accessing it.
The next stage is making the watering system execute without blocking the rest of the main code.
Thanks to the BME680 sensor requiring a large amount of time to read and process the temperature reading, the current code requires a large delay after the BME680 sensor has been fetched. This needs to be optimised. Consider:
Threads (current issues with looping these)
cppTimer