we now fetch any new rxmessages when they arrive at the radio

This commit is contained in:
geeksville 2020-02-10 15:31:56 -08:00
parent 6244556f8b
commit 10ad07e136
11 changed files with 110 additions and 43 deletions

View file

@ -2,9 +2,9 @@ package com.geeksville.mesh.ui
import androidx.compose.Model
import androidx.compose.mutableStateOf
import com.geeksville.mesh.MeshUser
import com.geeksville.mesh.NodeInfo
import com.geeksville.mesh.Position
import com.geeksville.mesh.service.MeshUser
import com.geeksville.mesh.service.NodeInfo
import com.geeksville.mesh.service.Position
import java.util.*
// defines the screens we have in the app
@ -26,12 +26,20 @@ object UIState {
private val testPositions = arrayOf(
Position(32.776665, -96.796989, 35), // dallas
Position(32.960758, -96.733521, 35), // richardson
Position(32.912901, -96.781776, 35) // north dallas
Position(
32.912901,
-96.781776,
35
) // north dallas
)
val testNodeNoPosition = NodeInfo(
8,
MeshUser("+6508765308".format(8), "Kevin MesterNoLoc", "KLO"),
MeshUser(
"+6508765308".format(8),
"Kevin MesterNoLoc",
"KLO"
),
null,
12345
)
@ -39,7 +47,11 @@ object UIState {
val testNodes = testPositions.mapIndexed { index, it ->
NodeInfo(
9 + index,
MeshUser("+65087653%02d".format(9 + index), "Kevin Mester$index", "KM$index"),
MeshUser(
"+65087653%02d".format(9 + index),
"Kevin Mester$index",
"KM$index"
),
it,
12345
)