SinricPro Library
|
Device which supports on / off and dimming commands. More...
#include <SinricProDimSwitch.h>
Public Member Functions | |
bool | sendPushNotification (String notification) |
Sending push notifications to SinricPro App. | |
void | onPowerState (PowerStateCallback cb) |
Set callback function for powerState request. | |
bool | sendPowerStateEvent (bool state, String cause=FSTR_SINRICPRO_PHYSICAL_INTERACTION) |
Send setPowerState event to SinricPro Server indicating actual power state. | |
void | onPowerLevel (SetPowerLevelCallback cb) |
Set callback function for setPowerLevel request. | |
void | onAdjustPowerLevel (AdjustPowerLevelCallback cb) |
Set callback function for adjustPowerLevel request. | |
bool | sendPowerLevelEvent (int powerLevel, String cause=FSTR_SINRICPRO_PHYSICAL_INTERACTION) |
Send setPowerLevel event to SinricPro Server indicating actual power level. | |
Device which supports on / off and dimming commands.
|
inherited |
Set callback function for adjustPowerLevel request.
cb | Function pointer to a AdjustPowerLevelCallback function |
|
inherited |
Set callback function for setPowerLevel request.
cb | Function pointer to a SetPowerLevelCallback function |
|
inherited |
Set callback function for powerState
request.
cb | Function pointer to a PowerStateCallback function |
|
inherited |
Send setPowerLevel
event to SinricPro Server indicating actual power level.
powerLevel | integer 0..100 report the powerlevel that the device have been set to |
cause | (optional) Reason why event is sent (default = "PHYSICAL_INTERACTION" ) |
true | event has been sent successfully |
false | event has not been sent, maybe you sent to much events in a short distance of time |
|
inherited |
Send setPowerState
event to SinricPro Server indicating actual power state.
state | true = device turned on false = device turned off |
cause | (optional) String reason why event is sent (default = "PHYSICAL_INTERACTION" ) |
true | event has been sent successfully |
false | event has not been sent, maybe you sent to much events in a short distance of time |
|
inherited |
Sending push notifications to SinricPro App.
notification | String with the notification |
true | event has been sent successfully |
false | event has not been sent, maybe you sent to much events in a short distance of time |