Get Serial Number

已完成

评论

3 条评论

  • 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
    评论操作 固定链接
  • 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
    评论操作 固定链接
  • 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
    评论操作 固定链接

请先登录再写评论。