Hey Hank,
I think Chris' code worked in iOS7. There were some changes in Core Bluetooth for iOS8.
Outside of that, you might want to try nesting the code to cancel the scan within the call back:
-centralManager.didDiscoverPeripheral.
The other thing to try is to make sure you haven't connected to the peripheral and not store it. Let it get deallocated. Also, check to make sure that you don't have an existing pairing with the device in Bluetooth Settings.
- Dave Hi, Chris:
I tested your code against our device, the app does not receive the changed advertising data.
it seems it is the device issue. My guess is that the device may do some thing after changing the advertising data. For your device, when the advertising data is changed, what else is modified?
|