From: Michal Pawluk
-Once the devices are discovered and the list is populated with available advertisers, the user is able to select one from all discovered peers. After selection, the UI is changed to the device's detailed view where the -following information is displayed: -
@@ -425,9 +416,12 @@ When a scan response message is received, then one has to obtain the sender's na it is already registered (__bt_le_is_device_registered()). If a received message concerns the registered and selected device, the received data is processed further by __scan_data_process() function. The scan response message may contain the same information set as the advertisement message extended with the service/solicitation service data. -
-This function's implementation is very similar to __adv_data_process() (see the Devices discovery section). -The only difference concerns the service's data acquisition (bt_le_get_scan_service_data_list()) and its storage in model's structure + + ++This function's implementation is very similar to __adv_data_process() (see the +Discovered device's details acquisition section). The only difference concerns the service's data acquisition +(bt_le_get_scan_service_data_list()) and its storage in model's structure (model_set_device_data()).
@@ -491,10 +485,15 @@ static void __scan_data_process(bt_adapter_le_device_scan_result_info_s *info, b
-If the number of services/solicitation services is non-zero, then the 'Check' button in device's detailed view becomes enabled. Once clicked, the popup with a list of all available services/solicitation
-services exposed by the advertiser appears.
-
-All the acquired information is binded to the previously obtained remote device name and stored internally for further use.
+In contrast to __adv_data_process() function (see the Discovered device's details acquisition section),
+the bt_le_get_scan_{scan_info_name}() functions are invoked to acquire the same set of information as from the advertisement
+message extended with service's data acquisition (bt_le_get_scan_service_data_list()).
+
+All the acquired information and service's data is binded to the remote device name (model_set_device_info() and
+model_set_device_data(), respectively) previously obtained and referenced by the
+dev_info variable.
Finally, the user interface is updated with view_main_update_peer_info() function to reflect received data.