Disruptive Documentation

Structure Ethernet​Status​Event

public struct EthernetStatusEvent: Codable, Equatable  

Details about the current ethernet connection status of a Cloud Connector.

See the Developer Website for more details.

%65 EthernetStatusEvent EthernetStatusEvent Codable Codable EthernetStatusEvent->Codable Equatable Equatable EthernetStatusEvent->Equatable PublishableEvent PublishableEvent EthernetStatusEvent->PublishableEvent

Nested Types

EthernetStatusEvent.ErrorMessage

Indicates an error related to connecting to the local network.

Conforms To

PublishableEvent

Used by event types (such as TouchEvent) to indicate that they can be published to the device emulator.

Codable
Equatable

Initializers

init(mac​Address:​ip​Address:​errors:​timestamp:​)

public init(macAddress: String, ipAddress: String, errors: [ErrorMessage], timestamp: Date)  

Creates a new EthernetStatusEvent.

init(from:​)

public init(from decoder: Decoder) throws  

Properties

mac​Address

public let macAddress: String

The MAC address of the Cloud Connector.

ip​Address

public let ipAddress: String

The current IP address of the Cloud Connector.

errors

public let errors: [ErrorMessage] 

Any errors related to connecting to the local network.

timestamp

public let timestamp: Date

The timestamp of when the ethernet status event was generated by a Cloud Connector.

event​Type

public var eventType: EventType  

Methods

encode(to:​)

public func encode(to encoder: Encoder) throws