Re: BT data (NSData *) question
Re: BT data (NSData *) question
- Subject: Re: BT data (NSData *) question
- From: Jens Alfke <email@hidden>
- Date: Tue, 07 Jan 2014 10:54:52 -0800
On Jan 7, 2014, at 10:22 AM, Eric E. Dolecki <email@hidden> wrote:
> How can I adjust that if else statement properly to evaluate the data sent
> to the iOS application over BLE?
>
> I'm in unchartered territory here. Is it something like the below? I'm
> thinking no...
The code you put below looks fine, though I’d go with a switch statement instead; it’s cleaner.
No offense, but this looks really straightforward to me. What about it is confusing you? The if/else syntax? The byte value in the NSData? The button logic?
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden