Maintainer | ongy |
---|---|
Stability | experimental |
Portability | Linux |
Safe Haskell | None |
Language | Haskell2010 |
This provides polling access to wifi information. For the event based version look at Monky.Examples.Wifi.Event
- data WifiFormat
- data WifiPollHandle
- data Direction
- getWifiHandle :: [WifiFormat] -> Text -> String -> IO WifiPollHandle
- getWifiHandle' :: ((WifiStats, Maybe NL80211Packet) -> Text) -> Text -> String -> IO WifiPollHandle
- guessWifiHandle :: [WifiFormat] -> Text -> IO WifiPollHandle
- guessWifiHandle' :: ((WifiStats, Maybe NL80211Packet) -> Text) -> Text -> IO WifiPollHandle
Documentation
data WifiFormat Source #
Enum-ish type for converting Wifi information to text
FormatMCS Direction | The MCSIndex for our connection |
FormatMCSMin | The minimum MCSIndex for our connection |
FormatWifiWidth | The Signal width (in MHz) |
FormatBitrate Direction | The Bitrate of our connection |
FormatBitrateMin | Minimum of TX/RX Bitrate for this station |
FormatSignal | Signal strength from other source |
FormatSignalAverage | Signal strength average |
FormatChannel | Print the current networks channel |
FormatName | Print the ESSID of the current network, may look weird because SSIDs are |
FormatFreq | Print the frequency the current network sends on (related to channel) |
FormatText Text | Print a plaintext string |
data WifiPollHandle Source #
The type for polling wifi information
Helper type for WifiFormat to specify direction
:: [WifiFormat] | Format String for output generation |
-> Text | Text that should be displayed when wifi is disconnected |
-> String | Name of the interface |
-> IO WifiPollHandle |
Get a wifi handle
getWifiHandle' :: ((WifiStats, Maybe NL80211Packet) -> Text) -> Text -> String -> IO WifiPollHandle Source #
Lower level version of getWifiHandle
for more level of control
:: [WifiFormat] | Format String for output generation |
-> Text | Text that should be displayed when wifi is disconnected |
-> IO WifiPollHandle |
Get a wifi handle, guess the interface
Guess isn't quite the right word here. This asks the NL80211 subsystem for a list of devices and picks the first one.
:: ((WifiStats, Maybe NL80211Packet) -> Text) | |
-> Text | Text that should be displayed when wifi is disconnected |
-> IO WifiPollHandle |
Lower level version of guessWifiHandle
for more control