Function ctru_sys::udsScanBeacons

source ·
pub unsafe extern "C" fn udsScanBeacons(
    outbuf: *mut c_void,
    maxsize: usize,
    networks: *mut *mut udsNetworkScanInfo,
    total_networks: *mut usize,
    wlancommID: u32_,
    id8: u8_,
    host_macaddress: *const u8_,
    connected: bool
) -> Result
Expand description

Scans for networks via beacon-scanning.

§Arguments

  • outbuf - Buffer which will be used by the beacon-scanning command and for the data parsing afterwards. Normally there’s no need to use the contents of this buffer once this function returns.
  • maxsize - Max size of the buffer. networks Ptr where the allocated udsNetworkScanInfo array buffer is written. The allocsize is sizeof(udsNetworkScanInfo)*total_networks. total_networks Total number of networks stored under the networks buffer.
  • wlancommID - Unique local-WLAN communications ID for each application.
  • id8 - Additional ID that can be used by the application for different types of networks.
  • host_macaddress - When set, this code will only return network info from the specified host MAC address. When not connected to a network this must be false. When connected to a network this must be true.