Location needs to be enabled for Bluetooth Low Energy Scanning on Android 6.0

No, this is not a bug. This issue was brought up to Google where they responded saying that this was the intended behavior and they won’t fix it. They directed developers to this site where it points out that location permission is now needed for hardware identifier access. It is now the developer’s responsibility to … Read more

Bluetooth Low Energy: listening for notifications/indications in linux

Try this… Run gatttool -b <MAC Address> –interactive like you did before. You’ll get a prompt and then you type connect. You should see a CON in the prompt indicating that you’ve connected to the device. Then type char-read-uuid 2902. You should get a list of all CCC (Client Characteristic Configuration) attributes on the device. … Read more

How to prevent Android bluetooth RFCOMM connection from dying immediately after .connect()?

Try to change your code for creating RfcommSocket: sock = zee.createRfcommSocketToServiceRecord( UUID.fromString(“8e1f0cf7-508f-4875-b62c-fbb67fd34812”)); for this code: Method m = zee.getClass().getMethod(“createRfcommSocket”, new Class[] { int.class }); sock = (BluetoothSocket) m.invoke(device, 1); Also try to change argument value in range 1-3 in this m.invoke(device, 1); When connection will be Connected, but aborted when you try reading, call in … Read more

Android 4.3 Bluetooth Low Energy unstable

Important implementation hints (Perhaps some of those hints aren’t necessary anymore due to Android OS updates.) Some devices like Nexus 4 with Android 4.3 take 45+ seconds to connect using an existing gatt instance. Work around: Always close gatt instances on disconnect and create a fresh instance of gatt on each connect. Don’t forget to … Read more

Programmatically turn on bluetooth in the iphone sdk?

I’ve been looking into this as well. You need to include the bluetoothmanager framework and header file in your project. It should be in /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/System/Library/PrivateFrameworks/BluetoothManager.framework/ If the header file is not there, you’ll need to grab a .h file that was generated from the library and include it in your project. I googled to find … Read more