

Alternatively, the iOS simulator can connect to the Bridge App over WiFi if only one mobile device is available. A second mobile device running the bridge app connects to the remote controller and relays WiFi communication. Debug mode can be turned on in the SDK Manager which will reroute all USB communication to WiFi. As some DJI products use the USB port to connect to the remote controller, this can make application development difficult.ĭJI provides a Bridge App to resolve this. IOS development requires the mobile device be connected to Xcode directly through USB to use native debugging and profiling tools. The product instance can be used to control and receive state information about the components of the product. Once connected, the SDK manager provides an instance to the connected product. For iOS, the SDK manager can automatically close the connection when the application enters the background if desired. The SDK manager can close the connection when desired. The class method startConnectionToProduct can be used to initiate the connection between application and product assuming the mobile device is already physically connected to the product (through either USB or WiFi).

Once registered, the application can be connected to the product. After the first successful registration, connectivity is not a requirement.

If using such a product, the first time the application is run should either be when the product is not connected to the mobile device, or the mobile device will need to have a cellular data connection. The product is the access point and the mobile device is the client, which means no internet connectivity will exist through the WiFi connection for the mobile device. Note: Some DJI products use WiFi as the connection between the mobile device and the product. This process is called registration, and is made available through the SDK Manager. After that, an internet connection will not be required to initialize the DJI Mobile SDK, but connectivity will be used when available to confirm the application still has authorization to control DJI products. Therefore, the first time an application is run on a mobile device, the mobile device will need to have an internet connection. Every subsequent initialization of the application on the mobile device will check the local cache if there is no connection to the internet. If successful, the result will be locally cached on the mobile device. When the application is first run, this key will be sent to a DJI server to validate the application can use the SDK. During application development, a unique application key (App Key) needs to be generated and included in the source code. RegistrationĪpplications need permission to initialize the DJI Mobile SDK. The class also provides the instance of the product connected to the mobile device, from which control, state and components can be accessed.
#Android sdk manager download studio registration
Application registration to use the DJI Mobile SDK, product connection, debugging and logging services are handled through the SDK manager class DJISDKManager.
