SinricPro Library
Loading...
Searching...
No Matches
SinricProMotionsensor

Device to report motion detection events. More...

#include <SinricProMotionsensor.h>

Inheritance diagram for SinricProMotionsensor:

Public Member Functions

bool sendPushNotification (String notification)
 Sending push notifications to SinricPro App.
 
bool sendMotionEvent (bool detected, String cause=FSTR_SINRICPRO_PHYSICAL_INTERACTION)
 Sending motion detection state to SinricPro server.
 

Detailed Description

Device to report motion detection events.

Member Function Documentation

◆ sendMotionEvent()

bool sendMotionEvent ( bool  detected,
String  cause = FSTR_SINRICPRO_PHYSICAL_INTERACTION 
)
inherited

Sending motion detection state to SinricPro server.

Parameters
detectedbool true if motion has been detected
'false' if no motion has been detected
cause(optional) String reason why event is sent (default = "PHYSICAL_INTERACTION")
Returns
the success of sending the event
Return values
trueevent has been sent successfully
falseevent has not been sent, maybe you sent to much events in a short distance of time

◆ sendPushNotification()

bool sendPushNotification ( String  notification)
inherited

Sending push notifications to SinricPro App.

Parameters
notificationString with the notification
Returns
the success of sending the event
Return values
trueevent has been sent successfully
falseevent has not been sent, maybe you sent to much events in a short distance of time