mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
WIP - doesn't yet build, but changing to set the device addresses the correct way
This commit is contained in:
parent
513f56f88f
commit
cde3f2dec2
6 changed files with 111 additions and 91 deletions
|
|
@ -436,7 +436,9 @@ class MainActivity : AppCompatActivity(), Logging,
|
|||
}
|
||||
|
||||
// ... Continue interacting with the paired device.
|
||||
RadioInterfaceService.setBondedDeviceAddress(this, device.address)
|
||||
model.meshService?.let { service ->
|
||||
service.setDeviceAddress(device.address)
|
||||
}
|
||||
}
|
||||
|
||||
else ->
|
||||
|
|
@ -636,7 +638,7 @@ class MainActivity : AppCompatActivity(), Logging,
|
|||
}
|
||||
}
|
||||
|
||||
fun bindMeshService() {
|
||||
private fun bindMeshService() {
|
||||
debug("Binding to mesh service!")
|
||||
// we bind using the well known name, to make sure 3rd party apps could also
|
||||
if (model.meshService != null)
|
||||
|
|
@ -648,7 +650,7 @@ class MainActivity : AppCompatActivity(), Logging,
|
|||
}
|
||||
}
|
||||
|
||||
fun unbindMeshService() {
|
||||
private fun unbindMeshService() {
|
||||
// If we have received the service, and hence registered with
|
||||
// it, then now is the time to unregister.
|
||||
// if we never connected, do nothing
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue