ubuntu-location-service  ..
An aggregating location service providing positioning and geocoding capabilities to applications.
com::ubuntu::location::connectivity::WirelessNetwork Struct Referenceabstract

#include <wireless_network.h>

+ Collaboration diagram for com::ubuntu::location::connectivity::WirelessNetwork:

Public Types

enum  Mode {
  Mode::unknown = 0,
  Mode::adhoc = 1,
  Mode::infrastructure = 2
}
 Enumerates all known operational modes of networks/aps. More...
 
typedef std::shared_ptr
< WirelessNetwork
Ptr
 
typedef BoundedInteger
< Tag::Frequency, 2412, 5825 > 
Frequency
 
typedef BoundedInteger
< Tag::SignalStrength, 0, 100 > 
SignalStrength
 

Public Member Functions

virtual const core::Property
< std::chrono::system_clock::time_point > & 
last_seen () const =0
 Timestamp when the network became visible. More...
 
virtual const core::Property
< std::string > & 
bssid () const =0
 Returns the BSSID of the network. More...
 
virtual const core::Property
< std::string > & 
ssid () const =0
 Returns the SSID of the network. More...
 
virtual const core::Property
< Mode > & 
mode () const =0
 Returns the mode of the network. More...
 
virtual const core::Property
< Frequency > & 
frequency () const =0
 Returns the frequency that the network/AP operates upon. More...
 
virtual const core::Property
< SignalStrength > & 
signal_strength () const =0
 Returns the signal quality of the network/AP in percent. More...
 

Detailed Description

Definition at line 36 of file wireless_network.h.

Member Typedef Documentation

Frequency that an individual AP operates on.

Definition at line 67 of file wireless_network.h.

Strength of signal for an individual AP.

Definition at line 75 of file wireless_network.h.

Member Enumeration Documentation

Enumerates all known operational modes of networks/aps.

Enumerator
unknown 

Mode is unknown.

adhoc 

Indicates the object is part of an Ad-Hoc 802.11 network without a central coordinating access point.

infrastructure 

The wireless device or access point is in infrastructure mode.

Definition at line 41 of file wireless_network.h.

Member Function Documentation

virtual const core::Property<std::string>& com::ubuntu::location::connectivity::WirelessNetwork::bssid ( ) const
pure virtual

Returns the BSSID of the network.

virtual const core::Property<Frequency>& com::ubuntu::location::connectivity::WirelessNetwork::frequency ( ) const
pure virtual

Returns the frequency that the network/AP operates upon.

virtual const core::Property<std::chrono::system_clock::time_point>& com::ubuntu::location::connectivity::WirelessNetwork::last_seen ( ) const
pure virtual

Timestamp when the network became visible.

virtual const core::Property<Mode>& com::ubuntu::location::connectivity::WirelessNetwork::mode ( ) const
pure virtual

Returns the mode of the network.

virtual const core::Property<SignalStrength>& com::ubuntu::location::connectivity::WirelessNetwork::signal_strength ( ) const
pure virtual

Returns the signal quality of the network/AP in percent.

virtual const core::Property<std::string>& com::ubuntu::location::connectivity::WirelessNetwork::ssid ( ) const
pure virtual

Returns the SSID of the network.


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