wloc  0.9.2
Simple Wi-Fi geolocation library and tool
wloc.fetchers.native.termux.TermuxNativeAPI Class Reference
Inheritance diagram for wloc.fetchers.native.termux.TermuxNativeAPI:
wloc.fetchers.native.NativeBackendCommon

Public Member Functions

None __init__ (self)
 
list get_networks (self)
 

Private Member Functions

None _fetch_json (self)
 
def _fetch_list (self)
 
None _parse_json (self)
 

Private Attributes

 _json
 

Detailed Description

Class for working with Termux API.

Constructor & Destructor Documentation

◆ __init__()

None wloc.fetchers.native.termux.TermuxNativeAPI.__init__ (   self)
Main constructor of the TermuxAPI class.

Reimplemented from wloc.fetchers.native.NativeBackendCommon.

Member Function Documentation

◆ _fetch_json()

None wloc.fetchers.native.termux.TermuxNativeAPI._fetch_json (   self)
private
Fetches JSON from stdout and stores the result in a special
private field.

◆ _fetch_list()

def wloc.fetchers.native.termux.TermuxNativeAPI._fetch_list (   self)
private
Fetches the list of available Wi-Fi networks using public
D-Bus methods.

Reimplemented from wloc.fetchers.native.NativeBackendCommon.

◆ _parse_json()

None wloc.fetchers.native.termux.TermuxNativeAPI._parse_json (   self)
private
Parses JSON stored in a special private field and tries to
extract the required information from it (BSSID and RSSI).
:exception FetcherError: Termux API error message.

◆ get_networks()

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