SinricPro Library
|
Device suporting basic on / off command. More...
#include <SinricProSwitch.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. | |
Device suporting basic on / off command.
|
inherited |
Set callback function for powerState
request.
cb | Function pointer to a PowerStateCallback function |
|
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 |