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
AlarmController.h
- Committer:
- sbouber1
- Date:
- 2016-06-10
- Revision:
- 10:fd4670ec0806
- Child:
- 11:1a0a8fd74bc0
File content as of revision 10:fd4670ec0806:
#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