• 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
How to get the updated advertisementData (kCBAdvDataManufacturerData) value?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to get the updated advertisementData (kCBAdvDataManufacturerData) value?


  • Subject: How to get the updated advertisementData (kCBAdvDataManufacturerData) value?
  • From: Hank Li <email@hidden>
  • Date: Thu, 15 Jan 2015 16:33:33 -0800

For my IOS app (on ios8), once it get the advertisementData, it will stay the same, even the data has been changed on the BLE device. How can I get the updated advertisementData in my ios app?

Here is the code, the startScan is called every 5 seconds.

func startScan() {
let opts = [CBCentralManagerScanOptionAllowDuplicatesKey:true];
centralManager.scanForPeripheralsWithServices(nil, options:opts);
}

func centralManager(central: CBCentralManager!, didDiscoverPeripheral peripheral: CBPeripheral!, advertisementData: [NSObject : AnyObject]!, RSSI: NSNumber!) {
        println("\(advertisementData)");
}

Here is the output, 
 [kCBAdvDataLocalName: MyDevice001, kCBAdvDataIsConnectable: 1, kCBAdvDataManufacturerData: <11e467f7 7ec2ed>]

the output will never change. how to get the updated advertisementData value?

Thanks,
Hank Li


 _______________________________________________
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

  • Follow-Ups:
    • Re: How to get the updated advertisementData (kCBAdvDataManufacturerData) value?
      • From: Christopher Cotton <email@hidden>
  • Prev by Date: Re: Maximum number of bonded devise / bonding keys
  • Next by Date: Re: How to get the updated advertisementData (kCBAdvDataManufacturerData) value?
  • Previous by thread: Re: iOS 7.1 and Yosemite Advertisement issues
  • Next by thread: Re: How to get the updated advertisementData (kCBAdvDataManufacturerData) value?
  • Index(es):
    • Date
    • Thread