Interface IProfile
interface IProfile
Extends com.amazon.apmf.IStandard
Represents a Wi-Fi profile to connect.
Methods
setSsid()
Set Service Set Identifier (SSID) of this Profile. A valid SSID is 0-32 octets with UTF-8 encoding.voidsetSsid(stringssid)
Parameters
ssid
string — Required
SSID of this Profile.
getSsid()
string? getSsid()
Get Service Set Identifier (SSID) of this Profile.
Returns
string?
The return value is optional and might be absent.
SSID on success.
setPassphrase()
Set the passphrase for WPA-PSK, WPA2-PSK, and WPA3-SAE. A valid passphrase for WPA-PSK and WPA2-PSK is 8-63 octets with ASCII encoding or 64 octets with HEX characters.voidsetPassphrase(stringpassphrase)
Parameters
passphrase
string — Required
passphrase of this Profile.
getPassphrase()
string? getPassphrase()
Get the Passphrase of this Profile.
Returns
string?
The return value is optional and might be absent.
PSK on success.
setWepKeys()
Set the Wired Equivalent Privacy (WEP) keys and WEP key index. up to 4 keys can be set and each key should have 5 or 13 octets with ASCII encoding or 10 or 26 HEX characters.voidsetWepKeys(u8wepKeyIndex,string[]wepKeys)
Parameters
wepKeyIndex
u8 — Required
WEP key index to transmit data.
wepKeys
string[] — Required
WEP keys of this Profile.
getWepKeys()
Get the Wired Equivalent Privacy (WEP) keys and WEP key index.voidgetWepKeys(outu8*wepKeyIndex, outstring[]*wepKeys)
Parameters
wepKeyIndex (out)
u8* — Required
WEP key index to transmit data.
wepKeys (out)
string[]* — Required
WEP keys of this Profile.
setAuthMode()
Set thevoidsetAuthMode(AuthMode*authMode)
AuthMode of this Profile.
Parameters
authMode
AuthMode* — Required
AuthMode.
getAuthMode()
AuthMode getAuthMode()
Get the AuthMode of this Profile.
Returns
AuthMode
AuthMode.
setHiddenSsid()
Enable or disable hidden SSID.voidsetHiddenSsid(boolhidden)
Parameters
hidden
bool — Required
enable or disable hidden SSID.
isHiddenSsid()
bool isHiddenSsid()
Get hidden SSID.
Returns
bool
true if the SSID is hidden.
setConfigStatus()
SetvoidsetConfigStatus(ConfigStatus*configStatus)
ConfigStatus of this Profile.
Parameters
configStatus
ConfigStatus* — Required
ConfigStatus.
getConfigStatus()
ConfigStatus getConfigStatus()
Get ConfigStatus of this Profile.
Returns
ConfigStatus
ConfigStatus.
setTethered()
enable or disable tethered mode.voidsetTethered(booltethered)
Parameters
tethered
bool — Required
enable or disable tethered mode.
isTethered()
bool isTethered()
Get tethered mode of this Profile.
Returns
bool
true if this Profile is tethered.
setIpConfig()
SetvoidsetIpConfig(com.amazon.kepler.net.common.IIpConfiguration?ipConfiguration)
IIpConfiguration of this Profile.
Parameters
ipConfiguration
com.amazon.kepler.net.common.IIpConfiguration? — Optional
IIpConfiguration.
getIpConfig()
Getcom.amazon.kepler.net.common.IIpConfiguration?getIpConfig()
IIpConfiguration of this Profile.
Returns
com.amazon.kepler.net.common.IIpConfiguration?
The return value is optional and might be absent.
IIpConfiguration.
setPriority()
Set the priority of this Profile among othervoidsetPriority(u8priority)
Profile.
Parameters
priority
u8 — Required
priority.
getPriority()
u8 getPriority()
Get the priority of this Profile.
Returns
u8
priority.

