Skip to content
Select language:English

MDK 3.7.3

This class provides a mechanism to track the localization process and send real-time updates to a remote server via MQTT.

It manages the lifecycle of an MQTT client, publishing messages related to starting, stopping, and other localization events.

This object is a singleton. Use 'InstantTracker.enable()' and 'InstantTracker.disable()' to manage the tracking process.

Types

@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.

Functions

fun disable()

Disables the tracking process.

Enables the tracking process with the provided options.