addObserver

abstract fun addObserver(@NotNull observer: @NotNull McuMgrTransport.ConnectionObserver)

Adds the connection observer. An observer will be notified whenever the connected device gets connected or disconnected.

Parameters

observer

the observer.