Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

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()

void setCountryCode(string countryCode)
Set the country code. An improper country code configuration may violate regulatory requirements.

Parameters

countryCode
string — Required country code in ISO 3166 alpha-2 (2-letter).

Throws

Requires 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

Requires com.amazon.network.privilege.net-info
Last modified on October 29, 2026