DeviceLink

@Serializable
data class DeviceLink(val shortCode: String, val description: String? = null, val isVendor: Boolean = false, val regions: List<String>? = null, val targets: List<String>? = null)(source)

A msh.to device link resolved by the Meshtastic API (/resource/deviceLinks) and cached locally. Every link routes through the msh.to redirect service.

Parameters

shortCode

the msh.to short code, e.g. rak_wismeshtag, rokland-heltec-v3.

description

human-readable label shown to the user.

isVendor

true for a first-party vendor link (shown more prominently than region-filtered marketplace links).

regions

marketplace shipping regions (ISO 3166-1 alpha-2). null = not region-filtered (vendor/worldwide); non-empty = limited to the listed countries.

targets

device platformioTargets this link is attached to; used to match a link to the device on screen.

Constructors

Link copied to clipboard
constructor(shortCode: String, description: String? = null, isVendor: Boolean = false, regions: List<String>? = null, targets: List<String>? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val url: String

The user-facing link, routed through the msh.to redirect service.