Re: Could retrievePeripherals retrieve the forgotten devices?
Re: Could retrievePeripherals retrieve the forgotten devices?
- Subject: Re: Could retrievePeripherals retrieve the forgotten devices?
- From: ???? <email@hidden>
- Date: Fri, 13 Jul 2012 19:36:59 +0800
Thanks for pierre's reply.
<<
I think when the description of retrievePeripherals says it can retrieve known peripherals , it doesn't mean "known by CBCentralManager ", but "known by you/your app". So it actually creates a CBPeripheral object with the corresponding UUID but it doesn't require the actual device to be around. Also it won't automatically connect to it.
>>
[KimY] I agree.
<<
Moreover, BLE devices don't appear in the General/Settings/Bluetooth screen.
>>
[KimY] The paired BLE device will appear in the General->Setting->Bluetooth screen.
My scenario is like following.
1) Connect and pair with 1 BLE peripheral. The connected peripheral UUID is saved by my app.
2) Kill and restart the application.
3) The peripheral I just connected has powered off.
4) The paired peripheral remembered in General->setting->bluetooth are forced to be forgotten.
5) call retrievePeripherals to retrieve the known UUID recorded by my application.
As no peripheral around and I've set forgotten in General->setting->bluetooth, I hope no peripheral should be retrieved.
But It's strange that the delegate
<<
- (void)centralManager:(CBCentralManager *)central didRetrievePeripherals:(NSArray *)peripheralsArray
>>
is invoked and the forgotten peripheral could still be gotten from peripheralsArray.
thanks.
br,
Kim
------------------ Original ------------------
Date: Fri, Jul 13, 2012 05:26 PM
To: "????"<email@hidden>;
Cc: "bluetooth-dev"<email@hidden>;
Subject: Re: Could retrievePeripherals retrieve the forgotten devices?
Hi Kim,
I think when the description of
retrievePeripherals says it can retrieve known peripherals , it doesn't mean "known by
CBCentralManager ", but "known by you/your app". So it actually creates a CBPeripheral object with the corresponding UUID but it doesn't require the actual device to be around. Also it won't automatically connect to it.
Moreover, BLE devices don't appear in the General/Settings/Bluetooth screen.
PB
2012/7/13 ????
<email@hidden>
I try to retrieve Peripherals like following.
<<
[self. t .centralManager retrievePeripherals:retrieveDeviceUUIDs];
>>
In my understanding, retrievePeripherals won't interact with the real peripherals, but try to retrieve the known list recorded by IPHONE4S so that to quickly connect to the paired device.
<<
* @discussion Ask the central to retrieve a list of known peripherals by their UUIDs.
* The relevant delegate callback will then promptly be invoked with the status of the request.
>>
But even I forget the bluetooth device from general->setting->bluetooth, the forgotten one still can be retrieved. It confused me.
thanks.
br,
Kim
_______________________________________________
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