Scan Parameters Service

group SPS

Scan parameters service.

The Scan Parameters Service enables a GATT Server device to expose a characteristic for the GATT Client to write its scan interval and scan window on the GATT Server device, and enables a GATT Server to request a refresh of the GATT Client scan interval and scan window.Scan Parameter Service makes up the services of HID Device, together with HID Service. Its role is to implement the interaction of data information when needing to change Scan parameters.

Scan Parameter Service contains two Characteristics: one is scan interval and scan window, and it is used to store Scan Parameters of the Client; the other is Scan Refresh, and it is used to notify the Client to update the value of Scan parameter according to recent data by notification.

The specific configuration can be achieved by modifying sps_config.h.

Application shall register scan parameter service when initialization through sps_add_service function.

Application can set the scan refresh value through sps_set_parameter function.

Application can notify refresh value to client through sps_scan_interval_window_value_notify function.