CommonGetDiscoveredDevicesUseCase
open class CommonGetDiscoveredDevicesUseCase(recentAddressesDataSource: RecentAddressesDataSource, nodeRepository: NodeRepository, databaseManager: DatabaseManager, usbScanner: UsbScanner? = null) : GetDiscoveredDevicesUseCase(source)
Platform-agnostic implementation of GetDiscoveredDevicesUseCase.
Intentionally NOT annotated @Single in common source: on Android, the richer org.meshtastic.feature.connections.domain.usecase.AndroidGetDiscoveredDevicesUseCase is the canonical binding, and a common @Single here would silently override it (last-write-wins), producing an empty USB list. Each non-Android target registers its own @Single wrapper (see JvmGetDiscoveredDevicesUseCase).
Inheritors
Constructors
Link copied to clipboard
constructor(recentAddressesDataSource: RecentAddressesDataSource, nodeRepository: NodeRepository, databaseManager: DatabaseManager, usbScanner: UsbScanner? = null)
Functions
Link copied to clipboard
open override fun invoke(showMock: Boolean, resolvedList: Flow<List<DiscoveredService>>): Flow<DiscoveredDevices>
Returns a flow of all discovered devices (BLE, USB, TCP).