Maintainer | ongy |
---|---|
Stability | experimental |
Portability | Linux |
Safe Haskell | None |
Language | Haskell2010 |
This module provides the event based interface to wifi information. It is rather limited because of some technical stuff with 802.11. If you need more information about your wifi use the Monky.Exmaple.Wifi.Poll module.
- getWifiHandle :: [WifiFormat] -> Text -> String -> IO WifiEvtHandle
- getWifiHandle' :: (WifiStats -> Text) -> Text -> String -> IO WifiEvtHandle
- getTextify :: WifiFormat -> WifiStats -> Text
- data WifiEvtHandle
- data WifiFormat
- = FormatChannel
- | FormatName
- | FormatFreq
- | FormatText Text
Documentation
:: [WifiFormat] | Format String for output generation |
-> Text | Text that should be displayed when wifi is disconnected |
-> String | Name of the interface |
-> IO WifiEvtHandle |
Get a wifi handle
getWifiHandle' :: (WifiStats -> Text) -> Text -> String -> IO WifiEvtHandle Source #
Lower level version of getWifiHandle
if you need exted information.
getTextify :: WifiFormat -> WifiStats -> Text Source #
Apply the WifiFormat
to show some WifiStats
information as text.
data WifiFormat Source #
A typesafe version of a format string
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 |