connect

abstract fun connect(@Nullable callback: @Nullable McuMgrTransport.ConnectionCallback)

Connect the transporter to the remote device. The callback must be called if supplied, even if the transport connection is already opened.

Parameters

callback

An optional callback to receive the result of the connection attempt.