wloc 1.1.0
Simple Wi-Fi geolocation library and tool
wloc.fetchers.native.NativeBackendCommon Class Reference
Inheritance diagram for wloc.fetchers.native.NativeBackendCommon:
wloc.fetchers.android.termux.TermuxNativeAPI wloc.fetchers.linux.netman.NetworkManagerNativeAPI wloc.fetchers.windows.wlan.WlanNativeAPI

Public Member Functions

None __init__ (self)
 
list get_networks (self)
 

Protected Member Functions

None _fetch_list (self)
 

Protected Attributes

list _network_list = []
 
int _sleep_seconds = 5
 

Detailed Description

Abstract class used for platform-dependent fetching the list
of available Wi-Fi networks.

Constructor & Destructor Documentation

◆ __init__()

None wloc.fetchers.native.NativeBackendCommon.__init__ ( self)
Main constructor of the FetcherBackendCommon class.

Reimplemented in wloc.fetchers.android.termux.TermuxNativeAPI, and wloc.fetchers.windows.wlan.WlanNativeAPI.

Member Function Documentation

◆ _fetch_list()

None wloc.fetchers.native.NativeBackendCommon._fetch_list ( self)
protected
Fetches the list of available networks and stores them in a
private class property.

Abstract method. Must be overridden.

Reimplemented in wloc.fetchers.android.termux.TermuxNativeAPI, wloc.fetchers.linux.netman.NetworkManagerNativeAPI, and wloc.fetchers.windows.wlan.WlanNativeAPI.

◆ get_networks()

list wloc.fetchers.native.NativeBackendCommon.get_networks ( self)
Gets the list of available Wi-Fi networks with their BSSID and
signal strength.
:return: The list of available Wi-Fi networks.