WifiProvisionUiState

data class WifiProvisionUiState(val phase: WifiProvisionUiState.Phase = Phase.Idle, val networks: List<WifiNetwork> = emptyList(), val error: WifiProvisionError? = null, val deviceName: String? = null, val deviceAddress: String? = null, val devices: List<DiscoveredDevice> = emptyList(), val pendingAddress: String? = null, val pendingName: String? = null, val addressIsHardware: Boolean = true, val linkAddressIgnored: Boolean = false, val ipAddress: String? = null, val provisionStatus: WifiProvisionUiState.ProvisionStatus = ProvisionStatus.Idle, val pickDismissed: Boolean = false)(source)

Constructors

Link copied to clipboard
constructor(phase: WifiProvisionUiState.Phase = Phase.Idle, networks: List<WifiNetwork> = emptyList(), error: WifiProvisionError? = null, deviceName: String? = null, deviceAddress: String? = null, devices: List<DiscoveredDevice> = emptyList(), pendingAddress: String? = null, pendingName: String? = null, addressIsHardware: Boolean = true, linkAddressIgnored: Boolean = false, ipAddress: String? = null, provisionStatus: WifiProvisionUiState.ProvisionStatus = ProvisionStatus.Idle, pickDismissed: Boolean = false)

Types

Link copied to clipboard

Properties

Link copied to clipboard

True where a device's address is a hardware address the user can compare with a label. False where it is an identifier only this host understands, which the screen does not ask the user to check.

Link copied to clipboard

Address of the BLE device we connected to, shown beside deviceName before any password is sent.

Link copied to clipboard

Name of the BLE device we connected to, shown in the DeviceFound confirmation.

Link copied to clipboard

Provisioning-capable devices seen by the current scan, in the order they are listed.

Link copied to clipboard
Link copied to clipboard

IPv4 address reported by nymea after successful provisioning (if available).

Link copied to clipboard

A link named a device by hardware address this platform cannot look up, so the user chooses the device.

Link copied to clipboard
Link copied to clipboard

Address a link or caller asked for, held in Phase.ConfirmDevice until the user connects or cancels.

Link copied to clipboard

Name the pending address advertises, once a scan has seen it.

Link copied to clipboard
Link copied to clipboard

The browser's device chooser closed without a pick, so the screen offers it again.

Link copied to clipboard

Provisioning outcome shown as inline status (matches web flasher pattern).