Advertising Static Data Error

I'm getting an ambiguous error from a call to startAdvertising() when I attempt to advertise Characteristics that are static data. I receive the callback peripheralManagerDidStartAdvertising(), with the error message:


localizedDescription: One or more parameters were invalid.

localizedFailureReason: nil


Any guesses? Are there code examples available that demonstrate how to advertise static data? I'm using Swift 2.2.1.


(The WWDC video Advanced CoreBluetooth from 2012 was very informative but glossed over the deeper details.)


Normally I wouldn't ask this sort of question here, but I've searched everywhere; 99.9% of code examples pass the value nil for dynamic data. (That last 0.1 is in other languages.) :-)


Best regards,


Michael

Answered by Sp3ck in 121199022

I posted this more detailed question to StackOverflow several hours ago, after realizing I couldn't post code here:

http://stackoverflow.com/questions/35858183/ios-corebluetooth-startadvertising-error-advertising-static-data


Thanks again,


Michael

Accepted Answer

I posted this more detailed question to StackOverflow several hours ago, after realizing I couldn't post code here:

http://stackoverflow.com/questions/35858183/ios-corebluetooth-startadvertising-error-advertising-static-data


Thanks again,


Michael

Advertising Static Data Error
 
 
Q