Re: Using CoreBluetooth from Command Line Tool
Re: Using CoreBluetooth from Command Line Tool
- Subject: Re: Using CoreBluetooth from Command Line Tool
- From: email@hidden
- Date: Fri, 05 Apr 2013 12:28:25 -0700
András,
If you change line 40 in WirelessBandManager.m to have a UUID of your peripheral, are you still able to get all the way through the didConnectPeripheral delegate? It doesn't work for me, I never get connected.
If I use the scanning method, I can find my peripheral and connect, including getting the didConnectPeripheral delegate called. However once I get my characteristics and start receiving data, I get corrupted/duplicated data (If my peripheral sends two segments of data on two connection intervals, I get the second data segment duplicated on both calls to didUpdateValueForCharacteristic).
Thanks for your help - I'm sure it is something stupid I'm doing, I just wish I knew what!
-- dave
On Apr 5, 2013, at 11:27 AM, András Kövi < email@hidden> wrote: I'm not sure either but it works for me pretty well. Though, I haven't tried to read or write characteristics. Do you have any clues why you would need the CFRunLoop? The reference says:
The main queue is automatically created by the system and associated with your application’s main thread. Your application uses one (and only one) of the following three approaches to invoke blocks submitted to the main queue:
If the main thread is used, then any of these should suffice and the same should be enough when a different queue is used as those are mapped to a thread pool and fully managed by the system.
Andras
|
_______________________________________________
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