iOS SDK DJIBaseProductDelegate

Completed

Comments

3 comments

  • DJI Developer Support
    didUpdateDiagnosticsInformation will automatically push code,solution and other information. But it pushes the status information of the aircraft, if you need to determine whether the aircraft is connected as well as the GPS signal, you need to use the corresponding interface or callback. In the event that the aircraft gets disconnected, the SDK will call back the productDisconnected function. To retrieve the GPS signal level, you can refer to the GPSSignalLevel (https://developer.dji.com/api-reference/ios-api/Components/FlightController/DJIFlightController_DJIFlightControllerCurrentState.html?search=gps&i=0djiflightcontroller_djiflightcontrollercurrentstate_gpssignalstatus_inline) for more details.
    0
    Comment actions Permalink
  • Hoà Trần

    But there are some error codes I see on DJI's application, for example, code 30001 related to GPS signal is not detected or when the App disconnects, the error code is 30002 related to disconected. But the application I am developing is not receiving these error codes

    0
    Comment actions Permalink
  • DJI Developer Support
    I wanted to ask you about the DiagnosticsInformationCallback. Is there a possibility that it doesn't push the same errorCode as the DJI application, but still contains the same information? For example, when you encounter the error code 30001 in the DJI application, does the DiagnosticsInformationCallback callback provide GPS-related information? Also, I wanted to check if you are using the latest version of the iOS SDK?
    0
    Comment actions Permalink

Please sign in to leave a comment.