Re: Using CoreBluetooth from a command line application
Re: Using CoreBluetooth from a command line application
- Subject: Re: Using CoreBluetooth from a command line application
- From: Craig Dooley <email@hidden>
- Date: Sun, 24 Jun 2012 11:28:50 -0700
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 <email@hidden> 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 (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
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