SignalSurveyRepository

Logs the signal of each packet the connected radio hears against where the radio is. Passive: it sends nothing. Each start opens a session, which stop or the end of the process closes.

Properties

Link copied to clipboard
abstract val activeSessionId: StateFlow<Long?>

The session being recorded into, or null while idle.

Link copied to clipboard
abstract val blocker: StateFlow<SignalSurveyBlocker?>

Null while idle, and while a running survey can log.

Link copied to clipboard
abstract val recording: StateFlow<Boolean>
Link copied to clipboard
abstract val sessions: Flow<List<SignalSurveySession>>

Every session of the connected radio, newest first.

Functions

Link copied to clipboard
abstract suspend fun delete(sessionId: Long)
Link copied to clipboard
abstract fun samples(sessionId: Long): Flow<List<SignalSample>>

The readings of one session, re-emitted as it grows.

Link copied to clipboard
abstract suspend fun samplesOnce(sessionId: Long): List<SignalSample>
Link copied to clipboard
abstract fun start()

Starts a survey; a no-op while one is already on.

Link copied to clipboard
abstract fun stop()