Syntax
VM_RESULT vm_wlan_get_connected_ap_info(
    void* info, 
    VM_WLAN_AP_INFO_TYPE info_type
);
ContentsIndex
PreviousUpNext
vm_wlan_get_connected_ap_info
Example
Syntax
VM_RESULT vm_wlan_get_connected_ap_info(
    void* info, 
    VM_WLAN_AP_INFO_TYPE info_type
);
Description

Gets information of the connected AP, such as BSSID, RSSI and the profile ID. 

The info_type specifies what kind of information to be retrieved. The caller should ensure enough space for the buffer to store the information as following: info_type info VM_WLAN_AP_INFO_BSSID VMUINT8 array with length at least VM_WLAN_MAC_ADDRESS_LENGTH + 1. VM_WLAN_AP_INFO_PROF_ID VMUINT32* points to a VMUINT32 variable. VM_WLAN_AP_INFO_RSSI VMINT32* points to an VMINT32 variable. VM_WLAN_AP_INFO_ALL vm_wlan_connected_ap_info_t* to an vm_wlan_connected_ap_info_t variable.

Parameters
Parameters 
Description 
VM_WLAN_AP_INFO_TYPE info_type 
[IN] Specifies the type of information to be retrieved. 
Example
// Gets the BSSID.
VMUNIT8 bssid[VM_WLAN_MAC_ADDRESS_LENGTH + 1] = {0};
vm_wlan_get_connected_ap_info((void*)bssid, VM_WLAN_AP_INFO_BSSID);

// Gets the profile ID.
VMUNIT32 prof_id;
vm_wlan_get_connected_ap_info((void*)&prof, VM_WLAN_AP_INFO_PROF_ID);

// Gets the RSSI.
VMINT32 rssi;
vm_wlan_get_connected_ap_info((void*)&rssi, VM_WLAN_AP_INFO_RSSI);

// Gets all information.
vm_wlan_connected_ap_info_t ap_info = {0};
vm_wlan_get_connected_ap_info((void*)&ap_info, VM_WLAN_AP_INFO_ALL);
File

vmwlan.h

Group
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.