WifiProvisionError

sealed interface WifiProvisionError(source)

Typed error categories for the WiFi provisioning flow.

Formatted into user-visible strings in the UI layer using string resources, keeping the ViewModel free of locale-specific text.

Inheritors

Types

Link copied to clipboard
data class ConnectFailed(val detail: String) : WifiProvisionError

BLE connection to the provisioning device failed; detail is the underlying exception's message.

Link copied to clipboard

The device to connect to did not advertise in time.

Link copied to clipboard

The connected device did not answer a command in time.

Link copied to clipboard
data class ProvisionFailed(val detail: String) : WifiProvisionError

Sending WiFi credentials to the device failed; detail is the device's or exception's message.

Link copied to clipboard
data class ScanFailed(val detail: String) : WifiProvisionError

WiFi network scan on the device failed; detail is the underlying exception's message.