DittoConnectionPriority

enum DittoConnectionPriority : Enum<DittoConnectionPriority>

The priority with which the local device should reach out to particular remote peers in the Ditto mesh.

For most use-cases, this API is not required as Ditto will automatically create an optimal P2P mesh. Certain use-cases, however, might require more manual control over how the mesh is formed.

Entries

High
Link copied to clipboard
High(2u)

Connect with high priority. Remote peers which are assigned this connection priority will be preferred over normal priority peers.

Normal
Link copied to clipboard
Normal(1u)

Connect with normal priority. This is also the default case unless specified otherwise.

DontConnect
Link copied to clipboard

Do not attempt to connect. Note that connections can be established by either peer, so the remote peer might still connect to this Ditto unless they are similarly configured.

Properties

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int
value
Link copied to clipboard
val value: UByte