KnxTelegramFactory
open class KnxTelegramFactory
Factory class to create KNX telegrams of various type.
-
Create a subscription request.
Declaration
Swift
open static func createSubscriptionRequest(groupAddress: KnxGroupAddress) -> KnxTelegramParameters
groupAddressThe group address to subscribe to.
Return Value
A subscription request telegram, ready to be sent.
-
Create a read request.
Declaration
Swift
open static func createReadRequest(to: KnxGroupAddress) -> KnxTelegramReturn Value
A read request telegram, ready to be sent.
-
Create a write request telegram.
Throws
UnknownTelegramType
Declaration
Swift
open static func createWriteRequest(to: KnxGroupAddress, type: KnxTelegramType, value: Int) throws -> KnxTelegramParameters
typeDPT type.
valueThe value to write, as an integer.
Return Value
A telegram, ready to be sent.
KnxTelegramFactory Class Reference