observeDeviceHardware

abstract fun observeDeviceHardware(hwModel: Int, target: String? = null): Flow<DeviceHardware?>(source)

Observes device hardware information as a non-blocking Flow.

Emits cached/bundled data immediately and refreshes from the network in the background if stale. Suitable for use inside Flow combine transforms where suspending would block the UI.

Parameters

hwModel

The hardware model identifier.

target

Optional PlatformIO target environment name to disambiguate multiple variants.