Re: Using CoreBluetooth from a command line application
Hi Christian, Everything in CoreBluetooth is tied to a dispatch queue. Is your app running the dispatch queue, or just quitting at the end of main? - Craig On Jun 22, 2012, at 7:13 PM, Christian Plazas <cplazas@gmail.com> wrote:
Hi,
I am trying to use CoreBluetooth from a command line application so that I can quickly try out different things without getting too hung up on making GUIs while I become familiar with CoreBluetooth and get my bluetooth back-end working.
Initially, I'm trying to get CBCentralManager functionality going. No matter what I do I cannot get my centralManagerDidUpdateState delegate to get called when I try to do this in a command line application. However, this always works whenever I do it from a GUI application. I admit, I'm pretty new at MacOS X development, so I may be missing something totally obvious. Does anyone have any tips on getting this to work from a command line application?
I have created two bare-bones apps to try and figure it out, one a command line app, the other a trivial GUI app. I stripped each app to its bare essentials so I could try to isolate the problem. I can post the code for both if it would help to see what I'm trying to do and to see what works and what doesn't.
Thanks, Christian _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/cdooley%40apple.com
This email sent to cdooley@apple.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Craig Dooley