MotionSensor.
More...
#include <MotionSensor.h>
template<
typename T>
class SINRICPRO_3_0_0::MotionSensor< T >
MotionSensor.
◆ sendMotionEvent()
Sending motion detection state to SinricPro server.
- Parameters
-
detected | bool 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
-
true | event has been sent successfully |
false | event has not been sent, maybe you sent to much events in a short distance of time |