SinricPro Library
MotionController

MotionController. More...

Inheritance diagram for MotionController:
SinricProMotionsensor

Public Member Functions

bool sendMotionEvent (bool detected, String cause="PHYSICAL_INTERACTION")
 Sending motion detection state to SinricPro server. More...
 

Detailed Description

Member Function Documentation

◆ sendMotionEvent()

bool sendMotionEvent ( bool  state,
String  cause = "PHYSICAL_INTERACTION" 
)

Sending motion detection state to SinricPro server.

Parameters
statetrue 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