Disruptive Documentation

Structure Network​Status​Event.​Cloud​Connector

public struct CloudConnector: Codable, Equatable  

A Cloud Connector that picked a network status event for a sensor.

%139 NetworkStatusEvent.CloudConnector NetworkStatusEvent.CloudConnector Equatable Equatable NetworkStatusEvent.CloudConnector->Equatable Codable Codable NetworkStatusEvent.CloudConnector->Codable

Member Of

NetworkStatusEvent

A network status event describes which Cloud Connectors a sensor is connected to, and how strong that connection is. A network status event is sent on every heartbeat, as well as when a sensor is touched.

Conforms To

Codable
Equatable

Initializers

init(identifier:​signal​Strength:​rssi:​)

public init(identifier: String, signalStrength: Int, rssi: Int)  

Creates a new CloudConnector. Creating a new cloud connector can be useful for testing purposes.

Properties

identifier

public let identifier: String

The identifier of the Cloud Connector that picked up the network status event.

signal​Strength

public let signalStrength: Int

The signal strength received by this Cloud Connector as a percentage.

rssi

public let rssi: Int

The raw signal strength received by this Cloud Connector.