DeviceStatusManager

Centralized manager for tracking online/offline status of devices. This singleton provides a single source of truth that can be observed by different parts of the app.

Properties

Link copied to clipboard
val deviceStatusMap: StateFlow<Map<String, Boolean>>

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun initialize(server: AppServer)
Link copied to clipboard
fun isDeviceOnline(ipAddress: String): Boolean
Link copied to clipboard
fun updateDeviceStatus(ipAddress: String, isOnline: Boolean, verified: Boolean = false)
Link copied to clipboard
fun verifyDeviceStatus(ipAddress: String)