SinricPro Library
|
Device to control a garage door. More...
#include <SinricProGarageDoor.h>
Public Member Functions | |
bool | sendPushNotification (String notification) |
Sending push notifications to SinricPro App. | |
void | onDoorState (DoorCallback cb) |
Set callback function for onDoorState request. | |
bool | sendDoorStateEvent (bool state, String cause=FSTR_SINRICPRO_PHYSICAL_INTERACTION) |
Send DoorState event to update actual door state on SinricPro Server. | |
Device to control a garage door.
Supporting
|
inherited |
Set callback function for onDoorState
request.
cb | Function pointer to a onDoorState function |
|
inherited |
Send DoorState
event to update actual door state on SinricPro Server.
state | bool true = close false = open |
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 |