SinricPro Library
|
Device to control a smart lock. More...
#include <SinricProLock.h>
Public Member Functions | |
bool | sendPushNotification (String notification) |
Sending push notifications to SinricPro App. | |
void | onLockState (LockStateCallback cb) |
Set callback function for setLockState request. | |
bool | sendLockStateEvent (bool state, String cause=FSTR_SINRICPRO_PHYSICAL_INTERACTION) |
Send lockState event to SinricPro Server indicating actual lock state. | |
Device to control a smart lock.
Supporting
|
inherited |
Set callback function for setLockState
request.
cb | Function pointer to a LockStateCallback function |
|
inherited |
Send lockState
event to SinricPro Server indicating actual lock state.
state | true = device is locked false = device is unlocked |
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 |