Re: BLE scan under simulator finds service twice
Re: BLE scan under simulator finds service twice
- Subject: Re: BLE scan under simulator finds service twice
- From: Etan Kissling <email@hidden>
- Date: Fri, 19 Apr 2013 22:50:35 +0000
- Thread-topic: BLE scan under simulator finds service twice
Rick,
The device name is cached by iOS according to a priority list:
1. Name read from Device name characteristic after a connect
2. Name from advertising packet
3. null
Note that the name from the advertising packet should be a prefix of the final name in the Device name characteristic.
Maybe the physical device already had the name cached, and does not send the second update, as it already
retrieved the name.
Your app should be able to deal with duplicates even when you don't request them.
Etan
On 19.04.2013, at 23:08, Rick Mann <email@hidden>
wrote:
>
> On Apr 19, 2013, at 12:26 , Andras Kovi <email@hidden> wrote:
>
>> Rick, this is part of the normal operation. http://lists.apple.com/archives/bluetooth-dev/2013/Mar/msg00063.html
>> I guess you can use isEqualTo: to check if the peripheral is new or not.
>
> Fair enough. But the odd thing is, I wasn't getting these two when run on the device; only on the sim.
>
>
>
> --
> 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