Ditto Connection
data class DittoConnection(val id: String, val peer1: DittoPeerKey, val peer2: DittoPeerKey, val connectionType: DittoConnectionType, val approximateDistanceInMeters: Double?)
Represents a connection between two peers on the Ditto mesh network.
Constructors
Link copied to clipboard
constructor(id: String, peer1: DittoPeerKey, peer2: DittoPeerKey, connectionType: DittoConnectionType, approximateDistanceInMeters: Double?)
Properties
Link copied to clipboard
Gets an estimate of distance to the remote peer. This value is inaccurate. The environment, hardware, and several other factors can greatly affect this value. It is currently derived from RSSI.
Link copied to clipboard
Type of transport enabling this connection.
Link copied to clipboard
Peer Key of one end of the connection.
Link copied to clipboard
Peer Key of the other end of the connection.