startNotifyEventChanges

fun BlueGPSLib.startNotifyEventChanges(streamType: StreamType, outputEvents: List<String>, tagIdList: List<String>? = null, callbackHandler: (Event) -> Unit? = null, onStop: (String) -> Unit? = null)

Accessory method for activate the notify generic event. If a previously job is active, its stopped and a new job started with the new configuration.

Parameters

streamType

type of the stream.

outputEvents

List of events to be notified for the specific types of stream.

tagIdList

List of tag id to monitoring. If empty receive notification for all tags.

callbackHandler

returns a generic event.

onStop

callback when the connection with the server is closed.