ContentsIndex
Example
vm_wlan_scan_set_parameter
// Sets dwell time.
VMUINT16 dwell_time = 70;
vm_wlan_scan_set_parameter((void*)&dwell_time, VM_WLAN_SCAN_PARAMETER_DWELL_TIME,
                           set_dwell_time_cb, NULL);

void set_dwell_time_cb(void* user_data, VM_WLAN_REQUEST_RESULT res)
{
    if (VM_WLAN_REQUEST_DONE == res)
    {
        // Sets dwell time successfully.
    }
}

// Sets parameter for the specific SSID list.
vm_wlan_specific_ssid_list_t ssid_list = {0};
ssid_list.ssid_list[0] = {5, "ssid1"};
ssid_list.ssid_list[1] = {5, "ssid2"};
ssid_list.ssid_list[2] = {5, "ssid3"};
ssid_list.ssid_list[3] = {5, "ssid4"};
ssid_list.ssid_list_number = 4;
vm_wlan_scan_set_parameter((void*)&ssid_list,
                           VM_WLAN_SCAN_PARAMETER_SPECIFIC_SSID_LIST,
                           set_spec_ssid_list_cb, NULL);

void set_spec_ssid_list_cb(void* user_data, VM_WLAN_REQUEST_RESULT res)
{
    if (VM_WLAN_REQUEST_DONE == res)
    {
        // Sets parameter for the specific SSID list successfully.
    }
}
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.