Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed DRV88255 TextLCD Ping mbed-rtos
Diff: AlarmController.h
- Revision:
- 10:fd4670ec0806
- Child:
- 11:1a0a8fd74bc0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/AlarmController.h Fri Jun 10 22:21:04 2016 +0000 @@ -0,0 +1,39 @@ +#ifndef __ALARMCONTROLLER_H__ +#define __ALARMCONTROLLER_H__ + +#include "mbed.h" +#include "SensorController.h" + + +class AlarmController : public Controller { + + + public: + AlarmController(bool threaded, int interval_ms, SensorController *temp, SensorController *salt, SensorController *proximity) + : Controller(threaded, interval_ms) { + this->temp = temp; + this->salt = salt; + this->proximity = proximity; + } + + virtual void update(); + + virtual std::string get_name(); + + bool is_error(); + + char *get_error_string(); + + + private: + SensorController *temp; + SensorController *salt; + SensorController *proximity; + + bool error; + char *error_message; + +}; + + +#endif \ No newline at end of file