build

fun build(regionName: String, place: GeocodedPlace?, at: LatLon?, directory: MqttRootDirectory, activity: Map<String, MqttTopicDiscovery.Activity> = emptyMap()): TopicPlan(source)

Region, then the country when the sample shows the broker uses it, then subdivision and city, then the community roots that serve the place. Each ladder rung is trimmed from the end of its last segment to fit the byte cap; a rung that empties is dropped with everything below it. Rebuilt as activity grows.