'Setting limited discoverble mode in BLE on android development

How to set limited discoverable mode in bluetooth low energy on android development?



Solution 1:[1]

Limited discoverable mode has specific flags in the advertisement data.

But the only types you can change are listed here: https://developer.android.com/reference/android/bluetooth/le/AdvertiseData.Builder.html. Flags is not one of them, so you can't.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Emil