Core Base Classes for the Light Endpoints
Dependents: mbed_mqtt_endpoint_ublox_ethernet mbed_mqtt_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet ... more
Diff: PhilipsLight.h
- Revision:
- 135:7f3f963cd159
- Parent:
- 97:d631edbc157b
- Child:
- 192:54b758a8eaaa
--- a/PhilipsLight.h Fri Mar 28 16:24:12 2014 +0000 +++ b/PhilipsLight.h Fri Mar 28 17:49:10 2014 +0000 @@ -20,9 +20,9 @@ #define _PHILIPS_LIGHT_H_ #include "Definitions.h" -#include "ErrorHandler.h" +#include "BaseClass.h" -class PhilipsLight { +class PhilipsLight : public BaseClass { private: int m_id; void *m_transport; @@ -31,19 +31,15 @@ char m_response[PL_RESPONSE_BUFFER_LEN+1]; int m_state; int m_dim; - ErrorHandler *m_error_handler; public: PhilipsLight(int id,void *transport,ErrorHandler *error_handler); - ~PhilipsLight(); + virtual ~PhilipsLight(); void on(); void off(); void dim(int dim); void update(); - - private: - ErrorHandler *logger(); -}; + }; #endif // _PHILIPS_LIGHT_H_ \ No newline at end of file