WiFi
getCountryCode() [WiFi]
Note:
Only supported on the P2, Photon 2, and M-SoM in Device OS 5.1.0 and later.
The Argon (Gen 3) does not support Wi-Fi channel plans. You can set the value, but it doesn't do anything.
// PROTOTYPE
int getCountryCode();
If the return value is >= 0, then it is a wlan_country_code_t. If it is < 0, then an error has occurred retrieving the value.
The country codes are listed in WiFi.setCountryCode().