SinricPro Library
|
Device to report contact sensor events. More...
#include <SinricProContactsensor.h>
Public Member Functions | |
bool | sendPushNotification (String notification) |
Sending push notifications to SinricPro App. | |
bool | sendContactEvent (bool detected, String cause=FSTR_SINRICPRO_PHYSICAL_INTERACTION) |
Send setContactState event to SinricPro Server indicating actual power state. | |
Device to report contact sensor events.
|
inherited |
Send setContactState
event to SinricPro Server indicating actual power state.
detected | [in] bool true = contact is closed [in] false = contact is open |
cause | [in] 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 |