Skip to content

Commit 9b437b1

Browse files
committed
Device Bluetooth Enable / Disable in LoRa/BTEngine
1 parent fb18028 commit 9b437b1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/src/main/java/net/sharksystem/asap/android/bluetooth/BluetoothEngine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ private void shutdown() throws ASAPException {
280280

281281
// stop BT adapter
282282
this.getBTAdapter().cancelDiscovery();
283-
//this.getBTAdapter().disable();
283+
this.getBTAdapter().disable();
284284

285285
this.btEnvironmentOn = false;
286286

app/src/main/java/net/sharksystem/asap/android/lora/LoRaCommunicationManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ public class LoRaCommunicationManager extends Thread {
3131
public LoRaCommunicationManager() throws ASAPLoRaException {
3232

3333
BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter();
34+
35+
btAdapter.enable();
3436
btAdapter.cancelDiscovery();
3537

3638
//TODO - move to Parameter / initialize Selection-Dialog

0 commit comments

Comments
 (0)