Fix compilation errors: remove duplicate GnssStatus, add getDeviceIdViaSsh stub, fix nullable Boolean condition
This commit is contained in:
parent
25732a9de7
commit
88ec5eb280
3 changed files with 6 additions and 12 deletions
|
|
@ -415,6 +415,11 @@ class BeeApiClient(
|
||||||
return postRaw("/api/1/ssh/toggle", json)
|
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 ─────────────────────────────────────────────────
|
// ── Storage & GNSS Status ─────────────────────────────────────────────────
|
||||||
|
|
||||||
suspend fun getStorageStatus(): ApiResult<StorageStatus> = withContext(Dispatchers.IO) {
|
suspend fun getStorageStatus(): ApiResult<StorageStatus> = withContext(Dispatchers.IO) {
|
||||||
|
|
|
||||||
|
|
@ -104,17 +104,6 @@ data class StorageStatus(
|
||||||
@SerializedName("recording_hours_available") val recordingHoursAvailable: Double? = null
|
@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(
|
data class BeePlugin(
|
||||||
@SerializedName("name") val name: String? = null,
|
@SerializedName("name") val name: String? = null,
|
||||||
@SerializedName("version") val version: String? = null,
|
@SerializedName("version") val version: String? = null,
|
||||||
|
|
|
||||||
|
|
@ -243,7 +243,7 @@ fun SettingsScreen(
|
||||||
Spacer(Modifier.width(8.dp))
|
Spacer(Modifier.width(8.dp))
|
||||||
Text(
|
Text(
|
||||||
wifiStatus?.let {
|
wifiStatus?.let {
|
||||||
if (it.connected) "Connected: ${it.ssid} (${it.ip})"
|
if (it.connected == true) "Connected: ${it.ssid} (${it.ip})"
|
||||||
else "Disconnected"
|
else "Disconnected"
|
||||||
} ?: "Unknown",
|
} ?: "Unknown",
|
||||||
color = if (wifiStatus?.connected == true) Amber else Color.Gray,
|
color = if (wifiStatus?.connected == true) Amber else Color.Gray,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue