CommonGetDiscoveredDevicesUseCase

open class CommonGetDiscoveredDevicesUseCase(recentAddressesDataSource: RecentAddressesSource, nodeRepository: NodeRepository, databaseManager: DatabaseManager, nodeManager: NodeManager, usbScanner: UsbScanner? = null) : GetDiscoveredDevicesUseCase(source)

Platform-agnostic implementation of GetDiscoveredDevicesUseCase.

Intentionally NOT contributed from common source: on Android, the richer org.meshtastic.feature.connections.domain.usecase.AndroidGetDiscoveredDevicesUseCase is the canonical binding, and a common binding here would duplicate it. Each non-Android target contributes its own wrapper (see JvmGetDiscoveredDevicesUseCase).

Inheritors

Constructors

Link copied to clipboard
constructor(recentAddressesDataSource: RecentAddressesSource, nodeRepository: NodeRepository, databaseManager: DatabaseManager, nodeManager: NodeManager, usbScanner: UsbScanner? = null)

Functions

Link copied to clipboard
open override fun invoke(showMock: Boolean, showReplay: Boolean, resolvedList: Flow<List<DiscoveredService>>): Flow<DiscoveredDevices>

Returns a flow of all discovered devices (BLE, USB, TCP).