• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Retrieving peripherals
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Retrieving peripherals


  • Subject: Re: Retrieving peripherals
  • From: Rick Mann <email@hidden>
  • Date: Wed, 02 Jul 2014 17:22:06 -0700

So, I just noticed that it returns an array, and my peripheral is in there. But then what is -centralManager:didRetrievePeripherals: for?

On Jul 2, 2014, at 16:46 , Jason Conn <email@hidden> wrote:

> - [CBCentralManager retrievePeripheralsWithIdentifiers:] is a synchronous method.
>
> On Jul 2, 2014, at 4:21 PM, Rick Mann <email@hidden> wrote:
>
>> I'm remembering the last-connected peripheral by storing the identifier in NSUserDefaults, then trying to retrieve that peripheral on the next launch.
>>
>> Store:
>>
>> 	NSString* uuid = self.peripheral.identifier.UUIDString;
>> 	//  Store uuid in NSUserDefaults
>>
>> Retrieve:
>>
>> 	NSUUID* uuid = [[NSUUID alloc] initWithUUIDString: inPeripheralIdentifier];
>> 	[self.cm retrievePeripheralsWithIdentifiers: @[ uuid ]];
>>
>> But -centralManager:didRetrievePeripherals: is never called (at all, even with an error).
>>
>> Am I doing something wrong? Thanks!
>>
>> --
>> Rick
>>
>>
>>
>>
>> _______________________________________________
>> 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


--
Rick




 _______________________________________________
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


  • Follow-Ups:
    • Re: Retrieving peripherals
      • From: Christopher Cotton <email@hidden>
References: 
 >Retrieving peripherals (From: Rick Mann <email@hidden>)
 >Re: Retrieving peripherals (From: Jason Conn <email@hidden>)

  • Prev by Date: Re: Retrieving peripherals
  • Next by Date: Re: Retrieving peripherals
  • Previous by thread: Re: Retrieving peripherals
  • Next by thread: Re: Retrieving peripherals
  • Index(es):
    • Date
    • Thread