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) -> KnxTelegramType

    Parameters

    address

    The 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

    address

    The group address to register a type for.

    type

    The type to register.

  • Load group address and DPT information from a .dptmap file

    Declaration

    Swift

    open static func loadDPTMap(from: String)

    Parameters

    filename

    The file to load