This would simply run the main loop. The interface could look like
class IApp
{
void Run() noexcept;
};
This should allow for unit testing of the application logic which includes but is not limited to:
- Checking the return values from the modules
- Error handling
This could also allow this project to be platform agnostic. For example, on the desktop we could make an API call to a weather service and print that to the console compared to on the STM32 which reads the temperature from a sensor and prints it on an LCD.
This would simply run the main loop. The interface could look like
This should allow for unit testing of the application logic which includes but is not limited to:
This could also allow this project to be platform agnostic. For example, on the desktop we could make an API call to a weather service and print that to the console compared to on the STM32 which reads the temperature from a sensor and prints it on an LCD.