MeshBeaconOffer

data class MeshBeaconOffer(val fromNodeNum: Int, val beacon: MeshBeacon, val snr: Float = 0.0f, val rssi: Int = 0)(source)

A received Mesh Beacon invitation — an advisory, zero-hop advertisement from another mesh offering a channel to join. Beacons are unsigned and originate from nodes outside the local NodeDB, so this is deliberately not a message/contact; it lives in the Discovery surface instead.

Parameters

fromNodeNum

The node that broadcast the beacon (informational only — beacons are unsigned).

beacon

The decoded advertisement, carrying the display message and the join offer.

snr

Signal-to-noise ratio of the received beacon packet, in dB (0 when unknown).

rssi

Received signal strength of the beacon packet, in dBm (0 when unknown).

Constructors

Link copied to clipboard
constructor(fromNodeNum: Int, beacon: MeshBeacon, snr: Float = 0.0f, rssi: Int = 0)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val beacon: MeshBeacon
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val key: String

Stable identity for dedup/dismiss: a given sender advertising a given channel is one standing invitation.

Link copied to clipboard
Link copied to clipboard
val rssi: Int
Link copied to clipboard
val snr: Float

Functions

Link copied to clipboard
fun encode(): String

Serializes to a single-line record fromNodeNum|snr|rssi|<base64 MeshBeacon> for lightweight prefs persistence. The base64 alphabet never contains |, so the delimiter is unambiguous.