voidsetSelectionMode(WiFiSelectionMode mode, final CompletionCallback callback)
Package:
dji.sdk.airlink
Description:
Sets the channel selection mode. Both channel number and bandwidth can be changed. If the 5 GHz band is available, then channels from that band can also be used. .
Input Parameters:
WiFiSelectionMode mode
Selection mode to set.
final CompletionCallback callback
The execution callback with the returned value(s).
Sets the WiFi channel. setChannelNumber must be used to determine which channels are possible to set. When a new channel is set, the WiFi on the product will reboot. The channel can only be changed when the product is not flying. Supported by Mavic Pro, Mavic Mini, DJI Mini SE.
Input Parameters:
int channelNumber
Index of the channel to select.
final CompletionCallback callback
The execution callback with the returned execution result.
Gets the channels available for the current frequency band. When FREQUENCY_BAND_DUAL is selected, channels for both 2.4GHz and 5GHz are available. Supported only by Mavic Pro, Mavic Mini, DJI Mini SE.
Input Parameters:
final CompletionCallbackWith<Integer[]> callback
The completion block with the returned execution result.
Sets the WiFi data rate (throughput). Higher data rates increase the quality of video transmission, but can only be used at shorter ranges. It is not supported by Spark or Mavic Air.
Returns the component index. Index is zero based. A component will have an index greater than zero when there are multiple components of the same type on the DJI product, and one of the components already has the index 0. For instance, M210 can have two gimbal mounted cameras, and will therefore have two gimbal components with indices 0 and 1, and two camera components with indices 0 and 1. For Matrice 600, there are printed numbers on the battery boxes. The Battery component instance with index 0 corresponds to battery compartment number 1. For Inspire 2 and M200 series, Battery with index 0 corresponds to the battery on the port (left hand) side of the aircraft. For M210, M210 RTK, M300 RTK and M350 RTK, Camera and Gimbal with index 0 corresponds to the camera and gimbal on the port (left hand) side of the aircraft. Lidar with index 0 corresponds to the lidar(Zenmuse L1) on the port (left hand) side of the aircraft.
Gets the serial number of the component. Depending on the component, this serial number might not match the serial number found on the physical component.
Returns the firmware version of the component. Each component will have a different firmware version, the combination of which will form the package firmware version getFirmwarePackageVersion found in BaseProduct.
Input Parameters:
@NonNull CompletionCallbackWith<String> callback
The execution callback with the value(s) returned.