Reputation: 25
I have developed an android app for my mobile in which I am advertising 13-bytes of data in advertisement packet. I have setup another BLE device which is in observer mode which catches this advertisement packets and sends a scan Request. I want to detect this scan request in my android app and send a scan response. Once I send the scan response I want to stop advertising and turn off Bluetooth in mobile. My mobile is sending the scan response but how to detect it so that I can stop advertising.
Upvotes: 2
Views: 2157
Reputation: 18442
Sorry, that information is not exposed over the HCI layer. The Bluetooth controller simply sends a scan response without notifying the host about that.
Upvotes: 1