From the course: Code Clinic: C++

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Find nearby Wi-Fi access points

Find nearby Wi-Fi access points - C++ Tutorial

From the course: Code Clinic: C++

Start my 1-month free trial

Find nearby Wi-Fi access points

- Google's Geolocation API can use information from nearby cell towers and/or from nearby Wi-Fi access points to determine a device's location. Since I created my solution to run on my laptop, and I rely on having Wi-Fi to get internet access, I formatted my request using information of the available Wi-Fi access points. The request packet contains information about each access point including their MAC address and the Wi-Fi signal strength measured in dBm's, amongst other information. A MAC address is the only required piece of information for each access point. But including the signal strength too, should presumably improve the accuracy. To get the local Wi-Fi access points, I turned to Windows' Native Wifi API, which is used to manage detected Wi-Fi profiles. It allowed me to create a handle to my computer's Wi-Fi device, and then get information about the Wi-Fi access points it sees. In my solution's…

Contents