Get Serial Number

Completed

Comments

3 comments

  • DJI Developer Support
    This is because the way you are using is wrong. Please read this article, https://sdk-forum.dji.net/hc/en-us/articles/6392364742809-Chapter-4-The-Keymanager-and-the-DJIKey You should call KeyManager.getInstance.get method to get the serialNumberKey. Also, make sure you read this key after the the FlightControllerKey.KeyConnection is non null.
    0
    Comment actions Permalink
  • Amel Cherifi

    Thank you for your answer, I managed to do it, but sometimes I get an error that the plane is not available. The same thing happens when I try to get the serial number on the remote by clicking GET in the key/value fragment.

    0
    Comment actions Permalink
  • DJI Developer Support
    Be careful when you call this method. When the aircraft is reboot which means the product is connected. The components are connected a short time after the product is connected. So, you need to wait the FlightControllerKey.KeyConnection is true and then get the serial number.
    0
    Comment actions Permalink

Please sign in to leave a comment.