Using scan request reporting

by <a href="http://community.silabs.com/t5/Welcome-and-Announcements/Community-Ranking-System-and-Recognition-Program/m-p/140490#U140490"><font color="#000000"><font size="2">Legend Employee</font></font> </a> tmonte ‎08-30-2017 06:02 AM - edited ‎08-30-2017 01:35 PM

Introduction

Together with the new BT5 advertising APIs introduced in SDK 2.3.x there was also a new event introduced le_gap_scan_request to notify the application that a scan request has been received.

 

How to use it

The BT5 API le_gap_bt5_set_adv_parameters has one parameter called report_scan which will enable scan request reporting via le_gap_scan_request every time that a scan request is received.

 

The le_gap_scan_request event will inform the application of what is the Bluetooth address (and address type) as well as bonding status of the device that sent the scan request.