Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
NetworkAccessPoint Class Reference

#include <Network.h>

Public Member Functions

 NetworkAccessPoint (const std::string &essId, const std::string &macAddress, int signalStrength, EncMode encryption, int channel=0)
 
const std::string & getEssId () const
 
const std::string & getMacAddress () const
 
int getSignalStrength () const
 
EncMode getEncryptionMode () const
 
int getChannel () const
 
int getQuality () const
 Returns the quality, normalized as a percentage, of the network access point. More...
 

Static Public Member Functions

static int FreqToChannel (float frequency)
 Translates a 802.11a+g frequency into the corresponding channel. More...
 

Constructor & Destructor Documentation

◆ NetworkAccessPoint()

NetworkAccessPoint::NetworkAccessPoint ( const std::string &  essId,
const std::string &  macAddress,
int  signalStrength,
EncMode  encryption,
int  channel = 0 
)
inline

Member Function Documentation

◆ FreqToChannel()

int NetworkAccessPoint::FreqToChannel ( float  frequency)
static

Translates a 802.11a+g frequency into the corresponding channel.

Parameters
frequencyThe frequency of the channel in units of Hz
Returns
The channel as an integer between 1 and 14 (802.11b+g) or between 36 and 165 (802.11a), or 0 if unknown.

◆ getChannel()

int NetworkAccessPoint::getChannel ( ) const
inline

◆ getEncryptionMode()

EncMode NetworkAccessPoint::getEncryptionMode ( ) const
inline

◆ getEssId()

const std::string & NetworkAccessPoint::getEssId ( ) const
inline

◆ getMacAddress()

const std::string & NetworkAccessPoint::getMacAddress ( ) const
inline

◆ getQuality()

int NetworkAccessPoint::getQuality ( ) const

Returns the quality, normalized as a percentage, of the network access point.

Returns
The quality as an integer between 0 and 100

◆ getSignalStrength()

int NetworkAccessPoint::getSignalStrength ( ) const
inline

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