ContactController.
More...
|
bool | sendContactEvent (bool detected, String cause="PHYSICAL_INTERACTION") |
| Send setContactState event to SinricPro Server indicating actual power state. More...
|
|
◆ sendContactEvent()
bool sendContactEvent |
( |
bool |
state, |
|
|
String |
cause = "PHYSICAL_INTERACTION" |
|
) |
| |
Send setContactState
event to SinricPro Server indicating actual power state.
- Parameters
-
state | [in] true = contact is closed
[in] false = contact is open |
cause | [in] String reason why event is sent (default = "PHYSICAL_INTERACTION" ) |
- Returns
true
event has been sent successfully
-
false
event has not been sent, maybe you sent to much events in a short distance of time