Re: 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 <rmann@latencyzero.com> wrote:
On Apr 19, 2013, at 12:26 , Andras Kovi <allprog@gmail.com> 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 (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/kissling%40oberon.ch
This email sent to kissling@oberon.ch
_______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (Bluetooth-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/bluetooth-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Etan Kissling