monky-2.2.0.0: A system state collecting library and application

Maintainerongy
Stabilityexperimental
PortabilityLinux
Safe HaskellNone
LanguageHaskell2010

Monky.Examples.Wifi.Event

Description

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.

Synopsis

Documentation

getWifiHandle Source #

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.

getTextify :: WifiFormat -> WifiStats -> Text Source #

Apply the WifiFormat to show some WifiStats information as text.

data WifiEvtHandle Source #

The handle type for this module

Instances

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