send gps info more often while testing

pull/8/head
geeksville 2020-02-19 15:28:15 -08:00
rodzic b1753bf5a8
commit b9848c458c
3 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -46,6 +46,7 @@ the channel is encrypted, you can share the the channel key with others by qr co
# Signal alpha release # Signal alpha release
Do this "Signal app compatible" release relatively soon after the alpha release of the android app. Do this "Signal app compatible" release relatively soon after the alpha release of the android app.
* call onNodeDBChanged after we haven't heard a packet from the mesh in a while - because that's how we decide we have less than 2 nodes in the mesh and should stop listening to the local GPS
* add large packet reassembly? * add large packet reassembly?
* optionally turn off crypto in signal - preferably though see if there is a nice way to be a peer of signal/sms and now mesh. * optionally turn off crypto in signal - preferably though see if there is a nice way to be a peer of signal/sms and now mesh.
* change signal package ID - if distributing modified binary * change signal package ID - if distributing modified binary

Wyświetl plik

@ -106,7 +106,8 @@ data class NodeInfo(
get() { get() {
val now = System.currentTimeMillis() / 1000 val now = System.currentTimeMillis() / 1000
// FIXME - use correct timeout from the device settings // FIXME - use correct timeout from the device settings
val timeout = 5 * 60 val timeout =
15 * 60 // Don't set this timeout too tight, or otherwise we will stop sending GPS helper positions to our device
return (now - lastSeen <= timeout) || lastSeen == 0 return (now - lastSeen <= timeout) || lastSeen == 0
} }

Wyświetl plik

@ -141,7 +141,7 @@ class MeshService : Service(), Logging {
if (fusedLocationClient == null) { if (fusedLocationClient == null) {
val request = LocationRequest.create().apply { val request = LocationRequest.create().apply {
interval = interval =
20 * 1000 // FIXME, do more like once every 5 mins while we are connected to our radio _and_ someone else is in the mesh 10 * 1000 // FIXME, do more like once every 5 mins while we are connected to our radio _and_ someone else is in the mesh
priority = LocationRequest.PRIORITY_HIGH_ACCURACY priority = LocationRequest.PRIORITY_HIGH_ACCURACY
} }