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: LightDimmerAction.h
- Revision:
- 21:cfdaee0a2b50
- Parent:
- 9:90fadae5489a
- Child:
- 192:54b758a8eaaa
--- a/LightDimmerAction.h Wed Feb 26 18:59:01 2014 +0000 +++ b/LightDimmerAction.h Wed Feb 26 21:29:18 2014 +0000 @@ -25,6 +25,9 @@ // what we act upon #include "Light.h" +// The resource we are bound to +#define DIMMING_RESOURCE "/lt/0/dim" + class LightDimmerAction : public Action { private: Light *m_light; @@ -32,9 +35,8 @@ public: LightDimmerAction(ErrorHandler *error_handler,Light *light); virtual ~LightDimmerAction(); - - ErrorHandler *logger(); - + + void dim(); void dim(int value); Light *light();