DJI Mobile SDK Documentation

      class DJIRTKNetworkServiceError

      class DJIRTKNetworkServiceError extends DJIError
      Package:dji.common.error
      Inherits From:DJIError
      Description:

      Errors related to RTK network services.

      Class Members:

      Members

      final AUTHENTICATION_FAILURE
      static final DJIRTKNetworkServiceError AUTHENTICATION_FAILURE =
      new DJIRTKNetworkServiceError("The authentication failed when trying to access to the server.")
      Package:dji.common.error
      Description:

      The authentication failed when trying to access to the server.

      final INVALID_SETTINGS
      static final DJIRTKNetworkServiceError INVALID_SETTINGS =
      new DJIRTKNetworkServiceError("The network service settings are invalid.")
      Package:dji.common.error
      Description:

      Network settings are not configured yet or invalid.

      final ALREADY_STARTED
      static final DJIRTKNetworkServiceError ALREADY_STARTED =
      new DJIRTKNetworkServiceError("The service is already started. Stop it first to re-start the service.")
      Package:dji.common.error
      Description:

      The service is already started. Stop it first to re-start the service.

      final INVALID_GPS_DATA
      static final DJIRTKNetworkServiceError INVALID_GPS_DATA = new DJIRTKNetworkServiceError(
      "The GPS location of the aircraft is invalid. The RTK network service requires the location of the air system.")
      Package:dji.common.error
      Description:

      The GPS location of the aircraft is invalid. The RTK network service requires the location of the air system.

      final INCORRECT_REFERENCE_STATION_SOURCE
      static final DJIRTKNetworkServiceError INCORRECT_REFERENCE_STATION_SOURCE = new DJIRTKNetworkServiceError(
      "Please choose correct reference station srouce.")
      Package:dji.common.error
      Description:

      Please choose correct reference station srouce.

      final ACCOUNT_NOT_LOGGED_IN_OR_EXPIRED
      static final DJIRTKNetworkServiceError
      ACCOUNT_NOT_LOGGED_IN_OR_EXPIRED = new DJIRTKNetworkServiceError("No logged in account or the login session has expired, please login DJI Account and try again.")
      Package:dji.common.error
      Description:

      No logged in account or the login session has expired, please login DJI Account and try again.

      final ACCOUNT_UNACTIVATED
      static final DJIRTKNetworkServiceError
      ACCOUNT_UNACTIVATED = new DJIRTKNetworkServiceError("Account has not activated, please activate your account first.")
      Package:dji.common.error
      Description:

      Account not activated, please contact DJI Support. Use activateNetworkService to activate your account.

      final INVALID_REQUEST
      static final DJIRTKNetworkServiceError INVALID_REQUEST =
      new DJIRTKNetworkServiceError("Invalid request for the RTK service. Please check if the network RTK service is purchased or activated.")
      Package:dji.common.error
      Description:

      Invalid request for the RTK service. Please check if the network RTK service is purchased or activated. After purchasing, within 3 minutes, you might also get this error.

      final SERVER_NOT_REACHABLE
      static final DJIRTKNetworkServiceError SERVER_NOT_REACHABLE =
      new DJIRTKNetworkServiceError("Unable to connect to server.")
      Package:dji.common.error
      Description:

      Unable to connect to server.

      final ACCOUNT_ERROR
      static final DJIRTKNetworkServiceError ACCOUNT_ERROR =
      new DJIRTKNetworkServiceError("Unknown account error,please contact DJI Support.")
      Package:dji.common.error
      Description:

      Unknown account error, please contact DJI Support.

      Inherited Methods:
      dji.common.error.DJIError
      method
      method getDJIError
      static DJIError getDJIError(int errorCode)
      Package:dji.common.error
      Description:

      Returns the specific error in the DJIFlightHubError according to the error code.

      Input Parameters:
      int errorCodeerrorCode for DJIFlightHubError.
      Return:
      static DJIErrorAn NSError object initialized with errorCode. If the errorCode was 0, returns nil.
      method getDJIError
      static DJIError getDJIError(int errorCode)
      Package:dji.sdk.utmiss
      Description:

      Get DJIUTMISSError.

      Input Parameters:
      int errorCodeAn int value of error code.
      Return:
      static DJIErrorAn object of DJIError.
      method getDescription
      String getDescription()
      Package:dji.common.error
      Description:

      Returns the description of the error code.

      Return:
      StringThe description of the error code.
      method setDescription
      void setDescription(String desc)
      Package:dji.common.error
      Description:

      Sets the description for the error code.

      Input Parameters:
      String descDescription string.