Interface IWifiInterface2
interface IWifiInterface2
Extends IWifiInterface
Extended Wi-Fi interface with regulatory domain (country code) support.
Provides APIs to configure and query the Wi-Fi country code which
determines allowed channels and transmit power levels per regional
regulations.
Methods
setCountryCode()
Set the country code. An improper country code configuration may violate regulatory requirements.voidsetCountryCode(stringcountryCode)
Parameters
countryCode
string — Required
country code in ISO 3166 alpha-2 (2-letter).
Throws
NotSupportedError— if the feature is not supported.SecurityError— if the app does not have the permission.
com.amazon.network.privilege.net-admin
getCountryCode()
string getCountryCode()
Returns the country code in ISO 3166 alpha-2 (2-letter) uppercase format,
or ‘00’ when the world regulatory domain is used.
Returns
string
country code.
Throws
NotSupportedError— if the feature is not supported.SecurityError— if the app does not have the permission.
com.amazon.network.privilege.net-info

