• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Refreshing local name of an already discovered Peripheral
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Refreshing local name of an already discovered Peripheral


  • Subject: Re: Refreshing local name of an already discovered Peripheral
  • From: Etan Kissling <email@hidden>
  • Date: Sat, 10 Nov 2012 11:46:57 +0000
  • Thread-topic: Refreshing local name of an already discovered Peripheral

Sandro,

what exactly do you want to achieve with a changing name? Maybe there are some workarounds.
Also, do you store your local name within the SCAN_RSP packet oder within the ADV_IND?
Finally, what happens if you also change the BD_ADDR each time you change names? 

Etan


On 03.11.2012, at 12:12, Sandro Baechler <email@hidden> wrote:

Hi,
I successfully discover a Peripheral and retrieve its local name with

[advertisementData objectForKey:CBAdvertisementDataLocalNameKey]

But if the Peripheral stops and restarts advertising with a different local name, the Client doesn't recognise the change right away. It takes a random amount of time (from 2 seconds to 5 min) until 

- (void) centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber *)RSSI

is called and the change detected. In a GKSession such a change was quickly recognised after initialising a new session and calling

peerListAvailable = [[NSMutableArray alloc] initWithArray:[currentSession peersWithConnectionState:GKPeerStateAvailable]];

and

for (NSString *peer in peerListAvailable) {
[currentSession displayNameForPeer:peer];
}

 I guess in CBluetooth

- (void)peripheralDidUpdateName:(CBPeripheral *)peripheral

only works when the devices are paired. 

My question therefore is: Is there way to get an update without pairing?
_______________________________________________
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

References: 
 >Refreshing local name of an already discovered Peripheral (From: Sandro Baechler <email@hidden>)

  • Prev by Date: Re: Bluetooth 2.0+EDR MFi Question
  • Next by Date: BT LE throughput limits per App
  • Previous by thread: Refreshing local name of an already discovered Peripheral
  • Next by thread: cancelPeripheralConnection misbehavior?
  • Index(es):
    • Date
    • Thread