connect

open override fun connect(callback: McuMgrTransport.ConnectionCallback?)


suspend fun connect()

Connects the device and awaits the connection to be ready.

The SMP connection is ready after notifications to the SMP characteristics are enabled and the transport reads the number of MCU buffers on the device using DefaultManager.params.

Throws

if the device has no usable SMP service.

if the device disconnects before the SMP service is ready.

if the connection fails.