Re: First received advertisment data doesn't contain local name
Re: First received advertisment data doesn't contain local name
- Subject: Re: First received advertisment data doesn't contain local name
- From: Andras Kovi <email@hidden>
- Date: Mon, 05 Nov 2012 00:59:01 +0100
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 <email@hidden> 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 (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