Smart1Tracker

Smart1Tracker is a class that handles the sending of data frames of the user and checks if the the user is getting in or out of some of the ports of an active order.

Functions

Link copied to clipboard

Notifies the Smart1Tracker that a new order is in progress, so it can be taken into account when checking if the user is getting in or out of some ports of the active order.

Link copied to clipboard
fun start(config: Smart1TrackerConfig, provider: Smart1TrackerDataProvider, coroutineScope: CoroutineScope, autoRestartOnError: Boolean = true, onGettingInPort: (Int) -> Unit? = null, onGettingOutPort: (Int) -> Unit? = null, onLog: (level: Smart1TrackerLogLevel, processType: Smart1TrackerProcessType?, message: String) -> Unit? = null, onFatalError: () -> Unit? = null)

Starts the Smart1Tracker process

Link copied to clipboard
fun stop()

Stops the Smart1Tracker process