| Maintainer | ongy |
|---|---|
| Stability | experimental |
| Portability | Linux |
| Safe Haskell | None |
| Language | Haskell2010 |
Monky.Examples.Wifi
Description
- getWifiHandle :: [WifiFormat] -> Text -> String -> IO WifiEvtHandle
- getWifiHandle' :: (WifiStats -> Text) -> Text -> String -> IO WifiEvtHandle
- data WifiEvtHandle
- data WifiFormat
- = FormatChannel
- | FormatName
- | FormatFreq
- | FormatText Text
Documentation
Arguments
| :: [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.
data WifiFormat Source #
A typesafe version of a format string
Constructors
| 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 |