Re: Unable To Find Connected Bluetooth Devices In My App
Re: Unable To Find Connected Bluetooth Devices In My App
- Subject: Re: Unable To Find Connected Bluetooth Devices In My App
- From: "email@hidden" <email@hidden>
- Date: Fri, 23 Jan 2015 18:01:40 +0000
Hey David,
Thank you very much for getting back to me.
I am using both BTLE via CoreBluetooth and classic Bluetooth via the External Accessory Framework.
I have read the whole internet. Hahahaha. At this point, I just want to get the list of classic bluetooth accessories connected to the phone.
When I execute this code the connectedAccessories array is always empty. Even when I have classic bluetooth speakers playing music from my phone.
NSArray *connectedAccessories = [self.externalAccessoryManager connectedAccessories];
Jose Jose Q.
On Fri Jan 23 2015 at 12:46:24 PM David Chu <
email@hidden> wrote:
Hey Jose.
Sounds like you are trying to use core bluetooth to communicate with devices that are not Bluetooth Low Energy or Bluetooth Smart or Bluetooth 4.0 (whatever the marketing term is).
I'd suggest searching one of those terms and reading up and then you will know what types of devices you can write apps for.
Cheers
- Dave
On Saturday, January 24, 2015,
email@hidden <
email@hidden> wrote:
Hello Everyone,I am very excited to join this mailing list as I just started developing an application to communicate with bluetooth accessories.
As of right now I am stuck in not being able to determine which external accessories are connected to my device.
I would sincerely appreciate your help in this matter.
Thank you very much in advance,
Jose Jose Q.
P.S. I was attaching the .m and .h files of the class I am using to deal with all bluetooth related tasks. But my message was rejected. Moderator told me to trim it to under 24KB. I had also attached an image with the protocols I added in the info.plist. However, my app always returned an empty array for connected devices even when my phone is connected to my car or playing music in a bluetooth speaker.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden