NordicSemiconductor / Android-BLE-Library

A library that makes working with Bluetooth LE on Android a pleasure. Seriously.
BSD 3-Clause "New" or "Revised" License
1.99k stars 414 forks source link

features #501

Closed ilker-aktuna closed 1 year ago

ilker-aktuna commented 1 year ago

This is not actually an issue, but just a question. I am trying to set some flags on an Advertisement data for my app. For example , LE limited Discoverable mode as seen here:

1A # Flags value 0x1A = 000011010  
   bit 0 (OFF) LE Limited Discoverable Mode
   bit 1 (ON) LE General Discoverable Mode
   bit 2 (OFF) BR/EDR Not Supported
   bit 3 (ON) Simultaneous LE and BR/EDR to Same Device Capable (controller)
   bit 4 (ON) Simultaneous LE and BR/EDR to Same Device Capable (Host)

default Android BLE library does not allow that. Can I use this library to set these flags ? if possible, how ? if not, could it be possible by wrapping the Advertiser part of the Android BLE library ?

philips77 commented 1 year ago

Hello, This library doesn't support advertising, just connection. Unfortunately, even the native API doesn't allow selling custom advertising data or flags. Flags are set automatically based on wherever the advertising is connectable or not.