GSWifiAccessPoint
@objc
public protocol GSWifiAccessPoint : Peripheral
Wifi access point peripheral interface.
Allows to configure various parameters of the device’s Wifi access point, such as:
- Environment (indoor/outdoor) setup
- Country
- Channel
- SSID
- Security
This peripheral can be retrieved by:
(id<GSWifiAccessPoint>) [drone getPeripheral:GSPeripherals.wifiAccessPoint]
Note
this protocol is for Objective-C only. Swift must use the protocolChannelSetting
-
Access point indoor/outdoor environment setting.
Note
Altering this setting may change the set of available channels, and even result in a device disconnection since the channel currently in use might not be allowed with the new environment setup.
Note
If in the App’s configuration, the flag
GroundSdk / autoSelectWifiCountry
is enabled, this setting is set to outdoor and cannot be modified.Declaration
Swift
var environment: EnvironmentSetting { get }
-
Access point country setting.
The country can only be configured to one of the
availableCountries
. The country is a two-letter string, as ISO 3166-1-alpha-2 code.Note
Altering this setting may change the set of available channels, and even result in a device disconnection since the channel currently in use might not be allowed with the new country setup.
Note
If in the App’s configuration, the flag
GroundSdk / autoSelectWifiCountry
is enabled, this setting cannot be modified (the country is based on the geolocation of the controller).Declaration
Swift
var isoCountryCode: StringSetting { get }
-
Set of raw values of countries to which the access point may be configured.
Declaration
Swift
@objc(availableCountries) var gsAvailableCountries: Set<String> { get }
-
Access point channel setting.
Note
Changing the channel (either manually or through auto-selection) may result in a device disconnection.Declaration
Swift
@objc(channel) var gsChannel: GSChannelSetting { get }
-
Access point Service Set IDentifier (SSID) setting.
Note
The device needs to be rebooted for the access point SSID to effectively change.Declaration
Swift
var ssid: StringSetting { get }
-
Access point security setting.
Note
The device needs to be rebooted for the access point security to effectively change.Declaration
Swift
@objc(security) var gsSecurity: GSSecurityModeSetting { get }