add extra bt information

This commit is contained in:
shrlnm 2023-01-04 21:55:03 +03:00
parent fed2c13610
commit acfd46c636

View File

@ -198,7 +198,10 @@ class Port:
elif mod_globals.os == 'android' and ( portName == 'bt' or MAC != None ):
self.portType = 2
self.droid = android.Android ()
self.droid.toggleBluetoothState (True)
if self.droid:
print('SL4A loaded')
print( 'BT is enabled:', self.droid.toggleBluetoothState (True).result)
print( 'BT discovery canceled:', self.droid.bluetoothDiscoveryCancel().result)
retry = 0
while 1:
time.sleep(1)