Fix compilation errors: remove duplicate GnssStatus, add getDeviceIdViaSsh stub, fix nullable Boolean condition
This commit is contained in:
parent
b8c0ef3086
commit
b23a5415a3
3 changed files with 6 additions and 12 deletions
|
|
@ -415,6 +415,11 @@ class BeeApiClient(
|
|||
return postRaw("/api/1/ssh/toggle", json)
|
||||
}
|
||||
|
||||
// SSH-based device ID retrieval (stub - not implemented)
|
||||
suspend fun getDeviceIdViaSsh(): ApiResult<String> {
|
||||
return ApiResult.Error("SSH device ID lookup not implemented")
|
||||
}
|
||||
|
||||
// ── Storage & GNSS Status ─────────────────────────────────────────────────
|
||||
|
||||
suspend fun getStorageStatus(): ApiResult<StorageStatus> = withContext(Dispatchers.IO) {
|
||||
|
|
|
|||
|
|
@ -104,17 +104,6 @@ data class StorageStatus(
|
|||
@SerializedName("recording_hours_available") val recordingHoursAvailable: Double? = null
|
||||
)
|
||||
|
||||
data class GnssStatus(
|
||||
@SerializedName("has_lock") val hasLock: Boolean? = null,
|
||||
@SerializedName("satellites") val satellites: Int? = null,
|
||||
@SerializedName("hdop") val hdop: Double? = null,
|
||||
@SerializedName("lat") val lat: Double? = null,
|
||||
@SerializedName("lon") val lon: Double? = null,
|
||||
@SerializedName("alt") val alt: Double? = null,
|
||||
@SerializedName("speed_kmh") val speedKmh: Double? = null,
|
||||
@SerializedName("last_fix_age_sec") val lastFixAgeSec: Int? = null
|
||||
)
|
||||
|
||||
data class BeePlugin(
|
||||
@SerializedName("name") val name: String? = null,
|
||||
@SerializedName("version") val version: String? = null,
|
||||
|
|
|
|||
|
|
@ -243,7 +243,7 @@ fun SettingsScreen(
|
|||
Spacer(Modifier.width(8.dp))
|
||||
Text(
|
||||
wifiStatus?.let {
|
||||
if (it.connected) "Connected: ${it.ssid} (${it.ip})"
|
||||
if (it.connected == true) "Connected: ${it.ssid} (${it.ip})"
|
||||
else "Disconnected"
|
||||
} ?: "Unknown",
|
||||
color = if (wifiStatus?.connected == true) Amber else Color.Gray,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue