First received advertisment data doesn't contain local name
First received advertisment data doesn't contain local name
- Subject: First received advertisment data doesn't contain local name
- From: Rick Mann <email@hidden>
- Date: Sun, 04 Nov 2012 14:56:11 -0800
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden