KnxOnOffControl
open class KnxOnOffControl: KnxTelegramResponseHandlerDelegate
Class representing a light switch.
-
Initializes a new object.
Declaration
Swift
public init(setOnOffAddress: KnxGroupAddress, responseHandler: KnxOnOffResponseHandlerDelegate)Parameters
setOnOffAddressThe group address to use for turning light on and off.
-
Trigger reading of switch state.
Declaration
Swift
open func readState() -
Read/write property holding the on/off state.
Declaration
Swift
open var lightOn: Bool -
Handler for telegram responses.
Declaration
Swift
open func subscriptionResponse(sender: AnyObject?, telegram: KnxTelegram)Parameters
senderThe interface the telegran were received on.
telegramThe received telegram.
KnxOnOffControl Class Reference