DoorController - only used for GarageDoor device and cannot used as capability for a custom device!
More...
#include <DoorController.h>
template<
typename T>
class SINRICPRO_3_0_0::DoorController< T >
DoorController - only used for GarageDoor device and cannot used as capability for a custom device!
◆ onDoorState()
Set callback function for onDoorState
request.
- Parameters
-
cb | Function pointer to a onDoorState function |
- Returns
- void
- See also
- DoorStateCallback
◆ sendDoorStateEvent()
Send DoorState
event to update actual door state on SinricPro Server.
- Parameters
-
state | bool true = close
false = open |
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 |