Hi All,
I have installed Android Things in a Raspberry Pi 3 board. I am trying to use the BLE2 v1.37 library of B4A v8.80 on this device.
I am getting the message "Not powered on." when I run the code below.
It seems to me Bluetooth is not turned-on in the RPi board. Is there anyway I can turn-on the on-board Bluetooth of the RPi which is running Android Things? I found a tutorial in https://scribles.net/auto-power-on-bluetooth-adapter-on-boot-up/ that tells how to turn it on using Linux command, but how do I issue these command when it is running Android Things?
Thanks
Tareq
I have installed Android Things in a Raspberry Pi 3 board. I am trying to use the BLE2 v1.37 library of B4A v8.80 on this device.
I am getting the message "Not powered on." when I run the code below.
B4X:
If Manager.State <> Manager.STATE_POWERED_ON Then
Log("Not powered on.")
Else If rp.Check(scan_rp.PERMISSION_ACCESS_COARSE_LOCATION) = False Then
Log("No location permission.")
Else
'start scanning
Manager.Scan2(Null, False)
End If
It seems to me Bluetooth is not turned-on in the RPi board. Is there anyway I can turn-on the on-board Bluetooth of the RPi which is running Android Things? I found a tutorial in https://scribles.net/auto-power-on-bluetooth-adapter-on-boot-up/ that tells how to turn it on using Linux command, but how do I issue these command when it is running Android Things?
Thanks
Tareq