monky-2.2.1.0: A system state collecting library and application

Maintainerongy
Stabilityexperimental
PortabilityLinux
Safe HaskellNone
LanguageHaskell2010

Monky.Examples.Wifi.Poll

Description

This provides polling access to wifi information. For the event based version look at Monky.Examples.Wifi.Event

Synopsis

Documentation

data WifiFormat Source #

Enum-ish type for converting Wifi information to text

Constructors

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

data Direction Source #

Helper type for WifiFormat to specify direction

Constructors

DirTX

Use TX information

DirRX

Use TX information

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 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

guessWifiHandle Source #

Arguments

:: [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.

guessWifiHandle' Source #

Arguments

:: ((WifiStats, Maybe NL80211Packet) -> Text) 
-> Text

Text that should be displayed when wifi is disconnected

-> IO WifiPollHandle 

Lower level version of guessWifiHandle for more control