vintage_net v0.6.0 VintageNet.WiFi.Utils View Source
Various utility functions for handling WiFi information
Link to this section Summary
Link to this section Types
Link to this type
frequency_info()
View Sourcefrequency_info() :: %{ band: VintageNet.WiFi.AccessPoint.band(), channel: non_neg_integer(), dbm_to_percent: function() }
Link to this section Functions
Convert power in dBm to a percent
The returned percentage is intended to shown to users like to show a number of bars or some kind of signal strength.
Link to this function
frequency_info(arg1)
View Sourcefrequency_info(non_neg_integer()) :: frequency_info()
Get information about a WiFi frequency
The frequency should be pass in MHz. The result is more information about the frequency that may be helpful to users.