DeviceAddress

public struct DeviceAddress : Codable, Equatable, Hashable
extension DeviceAddress: Fixture

A device’s address.

Use DeviceAddressResolver to resolve local a Nanoleaf devices address. Then use the resulting DeviceAddress to build requests.

  • The device’s host name.

    Declaration

    Swift

    public let hostName: String
  • The device’s port.

    Declaration

    Swift

    public let port: Int
  • url

    The device’s URL.

    Declaration

    Swift

    public var url: URL { get }

Fixture

  • Create a fixture.

    Declaration

    Swift

    public static func fixture(_ configure: ((inout `Self`) -> Void)? = nil) -> DeviceAddress

    Parameters

    configure

    A closure to configure the fixture.

    Return Value

    A DeviceAddress instance.