Public Member Functions | Private Member Functions | Private Attributes
heatmap::Signal Class Reference

Class that reads the signal quality of a wifi device and serves it 1. As a topic 2. As a service The actual core functionality is taken from the iwconfig source code. More...

List of all members.

Public Member Functions

 Signal (const char *wlan_dev)
 ~Signal ()

Private Member Functions

wifi_signal getSignal ()
 Gets the signal quality property of the wifi device.
wifi_signal getSignalAverage ()
 Calculates an average of multiple signal quality measurements.
bool openDevice ()
 Fills in basic information like the essid and the maximum signal quality.
bool srvGetSignal (heatmap::signal_service::Request &req, heatmap::signal_service::Response &res)

Private Attributes

ros::NodeHandle nh
const char * wifi_dev
wireless_infowifi_info
heatmap::wifi_signal wifi_sig
int wifi_skfd
iwreq wifi_wrq

Detailed Description

Class that reads the signal quality of a wifi device and serves it 1. As a topic 2. As a service The actual core functionality is taken from the iwconfig source code.

Definition at line 29 of file signal.cpp.


Constructor & Destructor Documentation

heatmap::Signal::Signal ( const char *  wlan_dev) [inline]

Definition at line 133 of file signal.cpp.

Definition at line 157 of file signal.cpp.


Member Function Documentation

wifi_signal heatmap::Signal::getSignal ( ) [inline, private]

Gets the signal quality property of the wifi device.

Returns:
An updated wifi_signal type

Definition at line 43 of file signal.cpp.

wifi_signal heatmap::Signal::getSignalAverage ( ) [inline, private]

Calculates an average of multiple signal quality measurements.

Returns:
An updated wifi_signal type

Definition at line 64 of file signal.cpp.

bool heatmap::Signal::openDevice ( ) [inline, private]

Fills in basic information like the essid and the maximum signal quality.

Definition at line 93 of file signal.cpp.

bool heatmap::Signal::srvGetSignal ( heatmap::signal_service::Request &  req,
heatmap::signal_service::Response &  res 
) [inline, private]

Definition at line 83 of file signal.cpp.


Member Data Documentation

Definition at line 37 of file signal.cpp.

const char* heatmap::Signal::wifi_dev [private]

Definition at line 35 of file signal.cpp.

Definition at line 34 of file signal.cpp.

heatmap::wifi_signal heatmap::Signal::wifi_sig [private]

Definition at line 36 of file signal.cpp.

Definition at line 32 of file signal.cpp.

Definition at line 33 of file signal.cpp.


The documentation for this class was generated from the following file:


heatmap
Author(s): Adrian Bauer
autogenerated on Thu Feb 11 2016 23:05:26