work with real hardware

This commit is contained in:
geeksville 2020-02-02 19:06:56 -08:00
parent d57a86abcd
commit f08e210e8d
2 changed files with 7 additions and 5 deletions

View file

@ -177,7 +177,9 @@ class RadioInterfaceService : Service(), Logging {
// Note: this call does no comms, it just creates the device object (even if the
// device is off/not connected)
device = bluetoothAdapter.getRemoteDevice("B4:E6:2D:EA:32:B7")
val usetbeam = false
val address = if (usetbeam) "B4:E6:2D:EA:32:B7" else "24:6F:28:96:C9:2A"
device = bluetoothAdapter.getRemoteDevice(address)
// Note this constructor also does no comm
safe = SafeBluetooth(this, device)