What does "Before I can attempt to connect to it" mean? Do you try to connect to the peripheral in a separate thread or you start the connection asynchronously? Could you clarify? On 2012.11.04., at 23:56, Rick Mann <rmann@latencyzero.com> wrote:
Every time I scan for peripherals, the first peripheral discovered (my only peripheral) doesn't have the local name in it. Before I can attempt to connect to it, a second advertising packet comes in, and that one contains the local name.
On the peripheral side, I'm only making the advertising call once, with a complete name and UUID packet:
CBUUID* serviceUUID = [CBUUID UUIDWithString: kTestServiceUUID]; NSDictionary* dict = @{ CBAdvertisementDataServiceUUIDsKey : @[ serviceUUID ], CBAdvertisementDataLocalNameKey : @"Test Peripheral" }; [self.pm startAdvertising: dict];
But, without fail, when I run the central, the first discovery lacks the name.
-- 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/allprog%40gmail.com
This email sent to allprog@gmail.com
_______________________________________________ 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