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
I posted this more detailed question to StackOverflow several hours ago, after realizing I couldn't post code here:
Thanks again,
Michael