KnxGroupAddressRegistry
open class KnxGroupAddressRegistry
A global registry for mapping group addresses to DPT types.
-
Look up a DPT type based on the group address.
Declaration
Swift
open static func getTypeForGroupAddress(address: KnxGroupAddress) -> KnxTelegramTypeParameters
addressThe group address to look up.
Return Value
The DPT type registered for the address, or .UNKNOWN if the address is not registered.
-
Register a DPT type for a group address.
Declaration
Swift
open static func addTypeForGroupAddress(address: KnxGroupAddress, type: KnxTelegramType)Parameters
addressThe group address to register a type for.
typeThe type to register.
-
Load group address and DPT information from a .dptmap file
Declaration
Swift
open static func loadDPTMap(from: String)Parameters
filenameThe file to load
KnxGroupAddressRegistry Class Reference