• 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
Received advertisement data dictionary empty when iOS6 iphone is making advertising
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Received advertisement data dictionary empty when iOS6 iphone is making advertising


  • Subject: Received advertisement data dictionary empty when iOS6 iphone is making advertising
  • From: Frederic Visticot <email@hidden>
  • Date: Thu, 20 Sep 2012 23:48:23 +0200

Test is done with 2 iPhone4S

1 with iOS6 (making advertising)

1 with iOS5 (receiving advertising)


I have developed an advertising service on a iPhone4S/iOS6

- Advertising seems correct (confirmed with sniffer).

- 2nd iPhone is trigged with the didDiscoverPeripheral

BUT advertisementData dictionary is empty...

For my point of view, the dictionary should contain CBAdvertisementDataLocalNameKey and CBAdvertisementDataServiceUUIDsKey


Any idea why this dico is empty ?


Code for the iOS6 advertising service

CBUUID *cbuuidService = [CBUUID UUIDWithString: @"1804"];//kAdvertisingServiceUUID];    

 NSArray *services = [NSArray arrayWithObject: cbuuidService];

    NSDictionary *advertisingDict = [NSDictionary dictionaryWithObjectsAndKeys: services,CBAdvertisementDataServiceUUIDsKey, @"iOS6", CBAdvertisementDataLocalNameKey, nil];

    [_peripheralManager startAdvertising: advertisingDict];


Code for the iOS5 reception service

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

    NSLog(@"didDiscoverPeripheral[%@] UUID: [%@]: RSSI returned after scan: %d", peripheral.name, peripheral.UUID, [RSSI intValue]);

    

    for (NSString * key in [advertisementData allKeys]) {

        NSLog(@"Key: %@ value: %@", key, [advertisementData objectForKey: key]);

    }

 _______________________________________________
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

  • Prev by Date: Re: BT4.0 Dongle works now in iOS Simulator!
  • Next by Date: Re: BT4.0 Dongle works now in iOS Simulator!
  • Previous by thread: Received advertisement data dictionary empty when iOS6 iphone is making advertising
  • Next by thread: Received advertisement data dictionary empty when iOS6 iphone is making advertising
  • Index(es):
    • Date
    • Thread