Some methods of DJICamera always return -1006 error (Get parameter failed) after drone reconnect
Drone: Mavic 2 Zoom Mobile SDK: 4.14
I call this methods of DJICamera object:
open func getHybridZoomSpec(completion: @escaping (DJICameraHybridZoomSpec, Error?) -> Void)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:
- Connect remote controller
- Turn remote controller and drone on
- Turn drone off
- Turn drone on
- Try to call an above methods of DJICamera object
- Notice -1006 error is returned
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
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
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"?