MRPT  1.9.9
CWirelessPower.cpp File Reference
#include "hwdrivers-precomp.h"
#include <mrpt/hwdrivers/CWirelessPower.h>
#include <iostream>
#include <windows.h>
#include <objbase.h>
#include <wlanapi.h>
#include <wtypes.h>
Include dependency graph for CWirelessPower.cpp:

Go to the source code of this file.

Functions

voidConnectWlanServerW ()
 Gets a connection to the server. More...
 
std::vector< PWLAN_INTERFACE_INFO > ListInterfacesW (HANDLE hClient)
 Gets a list of the interfaces available in the system (in Windows format) More...
 
std::string GUID2Str (const GUID &ifaceGuid)
 Transforms a GUID structure (in Windows format) to a string. More...
 
PWLAN_INTERFACE_INFO GetInterfaceW (std::string guid, HANDLE hClient)
 Gets a handle to the interface that has been set by setNet() (in Windows format) More...
 
std::vector< PWLAN_AVAILABLE_NETWORK > ListNetworksW (PWLAN_INTERFACE_INFO iface, HANDLE hClient)
 Gets a list of the networks available for an interface (in Windows format) More...
 
PWLAN_AVAILABLE_NETWORK GetNetworkW (HANDLE hClient, const std::string &ssid, const std::string &guid)
 Gets a handle to the network that has been set by setNet() (in Windows format) More...
 

Function Documentation

◆ ConnectWlanServerW()

void* ConnectWlanServerW ( )

Gets a connection to the server.

Exceptions
std::exceptionIn case there is a failure (happens when WiFi is not started)

Definition at line 56 of file CWirelessPower.cpp.

References THROW_EXCEPTION.

Referenced by mrpt::hwdrivers::CWirelessPower::loadConfig_sensorSpecific().

Here is the caller graph for this function:

◆ GetInterfaceW()

PWLAN_INTERFACE_INFO GetInterfaceW ( std::string  guid,
HANDLE  hClient 
)

Gets a handle to the interface that has been set by setNet() (in Windows format)

Exceptions
std::exceptionIn case there is a failure
Returns
PWLAN_INTERFACE_INFO returns a handle to the interface

Definition at line 185 of file CWirelessPower.cpp.

References GUID2Str(), and ListInterfacesW().

Referenced by GetNetworkW(), and mrpt::hwdrivers::CWirelessPower::ListNetworks().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetNetworkW()

PWLAN_AVAILABLE_NETWORK GetNetworkW ( HANDLE  hClient,
const std::string ssid,
const std::string guid 
)

Gets a handle to the network that has been set by setNet() (in Windows format)

Exceptions
std::exceptionIn case there is a failure
Returns
PWLAN_AVAILABLE_NETWORK returns a handle to the network

Definition at line 280 of file CWirelessPower.cpp.

References GetInterfaceW(), and ListNetworksW().

Referenced by mrpt::hwdrivers::CWirelessPower::GetPower().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GUID2Str()

std::string GUID2Str ( const GUID &  ifaceGuid)

Transforms a GUID structure (in Windows format) to a string.

Exceptions
std::exceptionIn case there is a failure
Returns
std::string returns a string containing the GUID

Definition at line 133 of file CWirelessPower.cpp.

References THROW_EXCEPTION.

Referenced by GetInterfaceW(), and mrpt::hwdrivers::CWirelessPower::ListInterfaces().

Here is the caller graph for this function:

◆ ListInterfacesW()

std::vector<PWLAN_INTERFACE_INFO> ListInterfacesW ( HANDLE  hClient)

Gets a list of the interfaces available in the system (in Windows format)

Exceptions
std::exceptionIn case there is a failure
Returns
std::vector returns handles to the available interfaces

Definition at line 86 of file CWirelessPower.cpp.

References THROW_EXCEPTION.

Referenced by GetInterfaceW(), and mrpt::hwdrivers::CWirelessPower::ListInterfaces().

Here is the caller graph for this function:

◆ ListNetworksW()

std::vector<PWLAN_AVAILABLE_NETWORK> ListNetworksW ( PWLAN_INTERFACE_INFO  iface,
HANDLE  hClient 
)

Gets a list of the networks available for an interface (in Windows format)

Exceptions
std::exceptionIn case there is a failure
Returns
std::vector returns handles to the available networks of a given interface
Parameters
ifacehandle to the WiFi interface

Definition at line 222 of file CWirelessPower.cpp.

Referenced by GetNetworkW(), and mrpt::hwdrivers::CWirelessPower::ListNetworks().

Here is the caller graph for this function:



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019