LockController.
More...
#include <LockController.h>
template<
typename T>
class SINRICPRO_3_0_0::LockController< T >
LockController.
◆ onLockState()
Set callback function for setLockState
request.
- Parameters
-
cb | Function pointer to a LockStateCallback function |
- Returns
- void
- See also
- LockStateCallback
◆ sendLockStateEvent()
Send lockState
event to SinricPro Server indicating actual lock state.
- Parameters
-
state | true = device is locked
false = device is unlocked |
cause | (optional) String reason why event is sent (default = "PHYSICAL_INTERACTION" ) |
- Returns
- the success of sending the even
- 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 |