#include "hwdrivers-precomp.h"
#include <mrpt/hwdrivers/CWirelessPower.h>
#include <iostream>
#include <windows.h>
#include <wlanapi.h>
#include <objbase.h>
#include <wtypes.h>
Go to the source code of this file.
Functions | |
void * | ConnectWlanServerW () |
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... | |
void* ConnectWlanServerW | ( | ) |
Gets a connection to the server.
std::exception | In case there is a failure (happens when WiFi is not started) |
Definition at line 55 of file CWirelessPower.cpp.
References THROW_EXCEPTION.
Referenced by mrpt::hwdrivers::CWirelessPower::loadConfig_sensorSpecific().
PWLAN_INTERFACE_INFO GetInterfaceW | ( | std::string | guid, |
HANDLE | hClient | ||
) |
Gets a handle to the interface that has been set by setNet() (in Windows format)
std::exception | In case there is a failure |
Definition at line 184 of file CWirelessPower.cpp.
References GUID2Str(), and ListInterfacesW().
Referenced by GetNetworkW(), and mrpt::hwdrivers::CWirelessPower::ListNetworks().
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)
std::exception | In case there is a failure |
Definition at line 279 of file CWirelessPower.cpp.
References GetInterfaceW(), and ListNetworksW().
Referenced by mrpt::hwdrivers::CWirelessPower::GetPower().
std::string GUID2Str | ( | const GUID & | ifaceGuid | ) |
Transforms a GUID structure (in Windows format) to a string.
std::exception | In case there is a failure |
Definition at line 132 of file CWirelessPower.cpp.
References THROW_EXCEPTION.
Referenced by GetInterfaceW(), and mrpt::hwdrivers::CWirelessPower::ListInterfaces().
std::vector<PWLAN_INTERFACE_INFO> ListInterfacesW | ( | HANDLE | hClient | ) |
Gets a list of the interfaces available in the system (in Windows format)
std::exception | In case there is a failure |
Definition at line 85 of file CWirelessPower.cpp.
References THROW_EXCEPTION.
Referenced by GetInterfaceW(), and mrpt::hwdrivers::CWirelessPower::ListInterfaces().
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)
std::exception | In case there is a failure |
iface | handle to the WiFi interface |
Definition at line 221 of file CWirelessPower.cpp.
Referenced by GetNetworkW(), and mrpt::hwdrivers::CWirelessPower::ListNetworks().
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST |