MqttRootsResponse

@Serializable
data class MqttRootsResponse(val entries: List<MqttRootsEntry> = emptyList(), val neighbors: Map<String, List<String>> = emptyMap(), val subdivisionSegments: Map<String, Map<String, String>> = emptyMap())(source)

The MQTT root directory the topic finder places a user with: envelope of resource/mqttRoots and the bundled mqtt_roots.json seed asset, served verbatim from meshtastic/api data/mqttRoots.json.

Constructors

Link copied to clipboard
constructor(entries: List<MqttRootsEntry> = emptyList(), neighbors: Map<String, List<String>> = emptyMap(), subdivisionSegments: Map<String, Map<String, String>> = emptyMap())

Properties

Link copied to clipboard
@SerialName(value = "entries")
val entries: List<MqttRootsEntry>
Link copied to clipboard
@SerialName(value = "neighbors")
val neighbors: Map<String, List<String>>

ISO 3166-2 code to the codes it borders, both directions present.

Link copied to clipboard
@SerialName(value = "subdivisionSegments")
val subdivisionSegments: Map<String, Map<String, String>>

ISO 3166-1 country to a geocoder's lowercased subdivision name, mapped to the topic segment.