SDK8: BluetoothLowEnergy.setConnectionStrategy() not working

Usage of
BluetoothLowEnergy.setConnectionStrategy(BluetoothLowEnergy.CONNECTION_STRATEGY_SECURE_PAIR_BOND);
with SDK 8.0.0 beta leads in SIM to

Error: Symbol Not Found Error
Details: Could not find symbol 'setConnectionStrategy'

Also, the API description looks erraneous to me:

"Using the value of CONNECTION_TYPE_SECURE_PAIR_BOND will pair and bond the device as part of the pairing process."

But CONNECTION_TYPE_SECURE_PAIR_BOND seems to be undefined.
While CONNECTION_STRATEGY_SECURE_PAIR_BOND seems to work.

  • When was the last time you wrote an actual CIQ app that uses BLE?  I have a few I use daily and have for years.

  • When was the last time you wrote an actual CIQ app that uses BLE?  I have a few I use daily and have for years.

    What does that have to do with anything?

    In all your decades of professional programming, have you never jumped on to an unfamiliar project or a new platform, and nonetheless understood certain things about it by looking at the code, trying small experimental samples, and using your brain?

    I said two things:

    - the error OP saw is not the same as the other error you are referring to (objective fact). OP's error (symbol not found) clearly refers to the fact that setConnectionStrategy (a function they're calling) doesn't exist for their device. The other error you mentioned and I linked to (system error) apparently refers to a failure of internal Garmin code (not app code) to call an internal function (hence the detail which refers to "<symbol>" as opposed to the actual name of a symbol that appears in their code).

    I linked to a bug report with the system error so that it would be clear that they're not the same error, which might help anyone else reading this thread to distinguish the two completely different situations.

    - I agree with you that bonding doesn't work in the simulator, so OP needs to test on a real device. Clearly having the ability to call setConnectionStrategy() is only one piece of the puzzle.

    Maybe you should work on your reading comprehension, if you even ever bother to read what you're replying to.