dji-sdk / Mobile-SDK-iOS

DJI Mobile SDK for iOS: http://developer.dji.com/mobile-sdk/
Other
577 stars 256 forks source link

Some methods of DJICamera always return -1006 error (Get parameter failed) after drone reconnect #454

Open YaroTs opened 3 years ago

YaroTs commented 3 years ago

Drone: Mavic 2 Zoom Mobile SDK: 4.14

I call this methods of DJICamera object:

  1. open func getHybridZoomSpec(completion: @escaping (DJICameraHybridZoomSpec, Error?) -> Void)
  2. open func getHybridZoomFocalLength(completion: @escaping (UInt, Error?) -> Void)

and -1006 error always gets back.

at the same time e.g. open func getModeWithCompletion(_ completion: @escaping (DJICameraMode, Error?) -> Void) works normally

Steps to reproduce:

  1. Connect remote controller
  2. Turn remote controller and drone on
  3. Turn drone off
  4. Turn drone on
  5. Try to call an above methods of DJICamera object
  6. Notice -1006 error is returned
dji-dev commented 3 years ago

Agent comment from Luce Luo in Zendesk ticket #46562:

Dear Customer,

Thank you for contacting DJI. Please try to wait some seconds and then get it again after reconnecting the drone.

Thanks,

Luce Luo DJI Developer Support

dji-dev commented 3 years ago

Agent comment from Hummels Lei in Zendesk ticket #46562:

Dear YaroTs,

In regards to your request, we haven't received any replies from you for 2 days.

If your request has been resolved, please ignore this email.

If not, please reply to this email directly so that we can provide you with further assistance.

Thank you for choosing DJI.

Best regards,

DJI Developer Support

YaroTs commented 3 years ago

Please try to wait some seconds and then get it again after reconnecting the drone.

I'm kind of disappointed by this answer. I expect sdk to be ready to make calls after "connected" notification arrives.

Could you, please, consider sending this type of notifications when there is a confidence that product components are ready to answer? Or, at least, adding another kind of notifications like "ready"?