![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <NetworkInfo.h>
Public Types | |
enum | ConnectionType { ConnectionType::ETHERNET, ConnectionType::WIFI } |
template<typename T > | |
using | Optional = avsCommon::utils::Optional< T > |
Public Member Functions | |
Optional< ConnectionType > | getConnectionType () const |
Optional< std::string > | getEssid () const |
Optional< std::string > | getBssid () const |
Optional< std::string > | getIpAddress () const |
Optional< std::string > | getSubnetMask () const |
Optional< std::string > | getMacAddress () const |
Optional< std::string > | getDhcpServerAddress () const |
Optional< bool > | getIsStaticIP () const |
void | setConnectionType (const ConnectionType &connectionType) |
void | setEssid (const std::string &essid) |
bool | setBssid (const std::string &bssid) |
bool | setIpAddress (const std::string &ipAddress) |
bool | setSubnetMask (const std::string &subnetMask) |
bool | setMacAddress (const std::string &macAddress) |
bool | setDhcpServerAddress (const std::string &dhcpServerAddress) |
void | setIsStaticIP (bool isStaticIP) |
void | resetConnectionType () |
void | resetEssid () |
void | resetBssid () |
void | resetIpAddress () |
void | resetSubnetMask () |
void | resetMacAddress () |
void | resetDhcpServerAddress () |
void | resetIsStaticIP () |
bool | operator== (const NetworkInfo &rhs) const |
bool | operator!= (const NetworkInfo &rhs) const |
Friends | |
std::ostream & | operator<< (std::ostream &os, const NetworkInfo &info) |
Friend output function. More... | |
Class that represents a set of network information.
using alexaClientSDK::settings::types::NetworkInfo::Optional = avsCommon::utils::Optional<T> |
Optional<std::string> alexaClientSDK::settings::types::NetworkInfo::getBssid | ( | ) | const |
Get the physical name of the access point.
Optional
otherwise. Optional<ConnectionType> alexaClientSDK::settings::types::NetworkInfo::getConnectionType | ( | ) | const |
Get the network connection type.
Optional
otherwise. Optional<std::string> alexaClientSDK::settings::types::NetworkInfo::getDhcpServerAddress | ( | ) | const |
Get the DHCP server address.
Optional
otherwise. Optional<std::string> alexaClientSDK::settings::types::NetworkInfo::getEssid | ( | ) | const |
Get the name of the network.
Optional
otherwise. Optional<std::string> alexaClientSDK::settings::types::NetworkInfo::getIpAddress | ( | ) | const |
Get the IP address value of the device in this network.
Optional
otherwise. Optional<bool> alexaClientSDK::settings::types::NetworkInfo::getIsStaticIP | ( | ) | const |
Get whether this network uses static IP.
Optional
otherwise. Optional<std::string> alexaClientSDK::settings::types::NetworkInfo::getMacAddress | ( | ) | const |
Get the device network physical address(MAC).
Optional
otherwise. Optional<std::string> alexaClientSDK::settings::types::NetworkInfo::getSubnetMask | ( | ) | const |
Get the network subnet mask.
Optional
otherwise. bool alexaClientSDK::settings::types::NetworkInfo::operator!= | ( | const NetworkInfo & | rhs | ) | const |
bool alexaClientSDK::settings::types::NetworkInfo::operator== | ( | const NetworkInfo & | rhs | ) | const |
Equality operator.
void alexaClientSDK::settings::types::NetworkInfo::resetBssid | ( | ) |
Reset the physical name of the access point.
void alexaClientSDK::settings::types::NetworkInfo::resetConnectionType | ( | ) |
Reset the network connection type information.
void alexaClientSDK::settings::types::NetworkInfo::resetDhcpServerAddress | ( | ) |
Reset the DHCP server address known to the device.
void alexaClientSDK::settings::types::NetworkInfo::resetEssid | ( | ) |
Reset the name of the network.
void alexaClientSDK::settings::types::NetworkInfo::resetIpAddress | ( | ) |
Reset the IP address value.
void alexaClientSDK::settings::types::NetworkInfo::resetIsStaticIP | ( | ) |
Reset whether the IP address is static or not.
void alexaClientSDK::settings::types::NetworkInfo::resetMacAddress | ( | ) |
Reset the physical address(MAC) of the device.
void alexaClientSDK::settings::types::NetworkInfo::resetSubnetMask | ( | ) |
Reset the network subnet mask.
bool alexaClientSDK::settings::types::NetworkInfo::setBssid | ( | const std::string & | bssid | ) |
Set the physical name of the access point.
bssid | The physical name of the access point. |
true
if the bssid has been set; false
otherwise. void alexaClientSDK::settings::types::NetworkInfo::setConnectionType | ( | const ConnectionType & | connectionType | ) |
Set the network connection type.
connectionType | The network connection type the device is connected to. |
bool alexaClientSDK::settings::types::NetworkInfo::setDhcpServerAddress | ( | const std::string & | dhcpServerAddress | ) |
Set the DHCP server address known to the device.
dhcpServerAddress | The address of the DHCP server using IPv6 or IPv4 mask format. |
true
if the HHCP serer address has been set; false
otherwise. void alexaClientSDK::settings::types::NetworkInfo::setEssid | ( | const std::string & | essid | ) |
Set the name of the network.
essid | The name of the network. |
bool alexaClientSDK::settings::types::NetworkInfo::setIpAddress | ( | const std::string & | ipAddress | ) |
Set the IP address value.
ipAddress | The IP address. The value can be either IPv6 or IPv4. |
true
if the ip address has been set; false
otherwise. void alexaClientSDK::settings::types::NetworkInfo::setIsStaticIP | ( | bool | isStaticIP | ) |
Set whether the IP address is static or not.
isStaticIP | Whether the network uses static IP or not. |
bool alexaClientSDK::settings::types::NetworkInfo::setMacAddress | ( | const std::string & | macAddress | ) |
Set the physical address(MAC) of the device.
macAddress | The device MAC address. |
true
if the MAC address has been set; false
otherwise. bool alexaClientSDK::settings::types::NetworkInfo::setSubnetMask | ( | const std::string & | subnetMask | ) |
Set the network subnet mask.
subnetMask | The network subnet mask using IPv6 or IPv4 mask format. |
true
if the subnet mask has been set; false
otherwise.
|
friend |
Friend output function.
Write a NetworkInfo
value to the given stream in json format.
stream | The stream to write the value to. |
info | The network info to write to the stream as a string. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0