class WifiConfiguration

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
ssidSsidSSID
security_keystringSecurity key to used when connecting to Wi-Fi network
connect_automaticallyboolConnection mode. Set to true so robot automatically connects to this Wi-Fi network at bootup, false otherwise

Member functions

Function nameReturn typeInput typeDescription
has_ssid() constboolvoidReturns true if ssid is set.
ssid()const Ssid&voidReturns the current value of ssid. If ssid is not set, returns a Ssid with none of its fields set (possibly ssid::default_instance()).
mutable_ssid()Ssid *voidReturns a pointer to the mutable Ssid object that stores the field's value. If the field was not set prior to the call, then the returned Ssid will have none of its fields set (i.e. it will be identical to a newly-allocated Ssid). After calling this, has_ssid() will return true and ssid() will return a reference to the same instance of Ssid.
clear_ssid()voidvoidClears the value of the field. After calling this, has_ssid() will return false and ssid() will return the default value.
set_allocated_ssid()voidSsid *Sets the Ssid object to the field and frees the previous field value if it exists. If the Ssid pointer is not NULL, the message takes ownership of the allocated Ssid object and has_ Ssid() will return true. Otherwise, if the ssid is NULL, the behavior is the same as calling clear_ssid().
release_ssid()Ssid *voidReleases the ownership of the field and returns the pointer of the Ssid object. After calling this, caller takes the ownership of the allocated Ssid object, has_ssid() will return false, and ssid() will return the default value.
security_key()const string&voidReturns the current value of security_key. If security_key is not set, returns the empty string/empty bytes.
set_security_key()voidconst string&Sets the value of security_key. After calling this, security_key() will return a copy of value.
set_security_key()voidstring&&(C++11 and beyond): Sets the value of security_key, moving from the passed string. After calling this, security_key() will return a copy of value.
set_security_key()voidconst char*Sets the value of security_key using a C-style null-terminated string. After calling this, security_key() will return a copy of value.
mutable_security_key()string *voidReturns a pointer to the mutable string object that stores security_key's value. If the field was not set prior to the call, then the returned string will be empty. After calling this, security_key() will return whatever value is written into the given string.
clear_security_key()voidvoidClears the value of security_key. After calling this, security_key() will return the empty string/empty bytes.
set_allocated_security_key()voidstring*Sets the string object to the field and frees the previous field value if it exists. If the string pointer is not NULL, the message takes ownership of the allocated string object. The message is free to delete the allocated string object at any time, so references to the object may be invalidated. Otherwise, if the value is NULL, the behavior is the same as calling clear_security_key().
release_security_key()string *voidReleases the ownership of security_key and returns the pointer of the string object. After calling this, caller takes the ownership of the allocated string object and security_key() will return the empty string/empty bytes.
connect_automatically()boolvoidReturns the current value of connect_automatically. If the connect_automatically is not set, returns 0.
set_connect_automatically()voidboolSets the value of connect_automatically. After calling this, connect_automatically() will return value.
clear_connect_automatically()voidvoidClears the value of connect_automatically. After calling this, connect_automatically() will return 0.

Parent topic: Base (C++)