Skip to content
Select language:English

MDK 3.7.3

@Serializable
class Options(val address: String, val port: Int = 1883, val username: String? = null, val password: String? = null, val keepAlive: Int = 60, val timeout: Int = 30, val prefix: String = "gipstech", val geofencing: Boolean = false, val minDist: Float = 0.2f, val minInterval: Int = 500, val filterByBuildings: List<String>? = null, val filterInsidePolygons: List<DoubleArray>? = null, val filterOutsidePolygons: List<DoubleArray>? = null)

Options for configuring the tracking process.

Constructors

constructor(address: String, port: Int = 1883, username: String? = null, password: String? = null, keepAlive: Int = 60, timeout: Int = 30, prefix: String = "gipstech", geofencing: Boolean = false, minDist: Float = 0.2f, minInterval: Int = 500, filterByBuildings: List<String>? = null, filterInsidePolygons: List<DoubleArray>? = null, filterOutsidePolygons: List<DoubleArray>? = null)

Properties

The MQTT server address.

Filters localization by building identifiers.

Filters localization to areas inside the specified geographic polygons.

Filters out localization results inside the specified geographic polygons.

If true, geofencing events will be sent.

The MQTT keep-alive interval (in seconds).

The minimum distance in meters between two consecutive positions.

The minimum time in milliseconds between two consecutive positions.

The MQTT password.

val port: Int

The MQTT server port.

The MQTT topic prefix.

The MQTT connection timeout (in seconds).

The MQTT username.