Method | Description | |
---|---|---|
Close ( ) : void |
Closes the opener.
|
|
DisableOverride ( ) : void |
Disables the lock override. This will cause this opener to resume reading the actual state of the lock (if specified).
|
|
Dispose ( ) : void |
Releases all resource used by the CyrusBuilt.MonoPi.Devices.Access.OpenerDevice object. Call Dispose when you are finished using the CyrusBuilt.MonoPi.Devices.Access.OpenerDevice. The Dispose method leaves the CyrusBuilt.MonoPi.Devices.Access.OpenerDevice in an unusable state. After calling Dispose, you must release all references to the CyrusBuilt.MonoPi.Devices.Access.OpenerDevice so the garbage collector can reclaim the memory that the CyrusBuilt.MonoPi.Devices.Access.OpenerDevice was occupying. |
|
Open ( ) : void |
Opens the opener.
|
|
OpenerDevice ( IRelay relay, ISensor sensor, SensorState openState ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.Devices.Access.OpenerDevice class with the relay, sensor, and the sensor state that indicates that the opener has opened.
|
|
OpenerDevice ( IRelay relay, ISensor sensor, SensorState openState, ISwitch lok ) : System |
Initializes a new instance of the CyrusBuilt.MonoPi.Devices.Access.OpenerDevice class with the relay, sensor, the sensor state that indicates that the opener has opened, and the switch that controls the lock.
|
|
OverrideLock ( SwitchState overridedState ) : void |
Manually overrides the state of the lock. This can be used to force lock or force unlock the opener. This will cause this opener to ignore the state of the lock (if specified) and only read the specified lock state.
|
Method | Description | |
---|---|---|
GetOpenerState ( SensorState sensState ) : OpenerState |
Gets the state of the opener based on the specified sensor state.
|
Method | Description | |
---|---|---|
OnLockStateChanged ( Object sender, |
Handles the lock state changed.
|
|
OnSensorStateChanged ( Object sender, |
Handles the sensor state changed event.
|
protected GetOpenerState ( SensorState sensState ) : OpenerState | ||
sensState | SensorState | /// Sensor state. /// |
return | OpenerState |
public OpenerDevice ( IRelay relay, ISensor sensor, SensorState openState ) : System | ||
relay | IRelay | /// The relay that controls the opener. /// |
sensor | ISensor | /// The reading the state of the opener. /// |
openState | SensorState | /// The sensor state that indicates the opener has opened. /// |
return | System |
public OpenerDevice ( IRelay relay, ISensor sensor, SensorState openState, ISwitch lok ) : System | ||
relay | IRelay | /// The relay that controls the opener. /// |
sensor | ISensor | /// The reading the state of the opener. /// |
openState | SensorState | /// The sensor state that indicates the opener has opened. /// |
lok | ISwitch | /// The switch that controls the lock. /// |
return | System |
public OverrideLock ( SwitchState overridedState ) : void | ||
overridedState | SwitchState | |
return | void |