I am using the following function, which does not have any semaphore input:
wwd_result_t wwd_wifi_scan( wiced_scan_type_t scan_type,
/*@null@*/ const wiced_ssid_t* optional_ssid,
/*@null@*/ const wiced_mac_t* optional_mac,
/*@null@*/ /*@unique@*/ const uint16_t* optional_channel_list,
/*@null@*/ const wiced_scan_extended_params_t* optional_extended_params,
/*@null@*/ void* user_data,
2 of 2 people found this helpful
I think the wiced_scan_result_callback_t callback and wiced_scan_result_t can give you the scan status as you wanted, need your help to have a check .
wiced_scan_result_t does not have any semaphore fields.
wiced_scan_result_callback_t is called as soon as a result is available. So it is usually called several times during the scan process.
1 of 1 people found this helpful
The third parameter of the following function
static void scan_results_handler( wiced_scan_result_t** result_ptr, void* user_data, wiced_scan_status_t status )
is the current status of the scan process:
this variable can be used to check if the scan has completed!