wloc 0.9.2
Simple Wi-Fi geolocation library and tool
wloc.helpers.Helpers Class Reference

Static Public Member Functions

str fix_strength (int strength)
 
str percents2dbm (int stp)
 

Detailed Description

Static class with helper methods.

Member Function Documentation

◆ fix_strength()

str wloc.helpers.Helpers.fix_strength ( int  strength)
static
Checks and returns strength in the required RSSI (dBm) format.
Automatically converts percents to dBm.
:param strength: Signal strength in any format.
:return: Signal strength in dBm.

◆ percents2dbm()

str wloc.helpers.Helpers.percents2dbm ( int  stp)
static
Converts Wi-Fi signal strength percents to RSSI (dBm).
:param stp: Signal strength in percents.
:return: Signal strength in dBm.