MSDK (Android) - Serial number returns "null"

已完成

评论

3 条评论

  • DJI Developer Support
    Please try the latest 4.16.2 version. Are you able to see the serial number in DJI FLY app?
    0
    评论操作 固定链接
  • Kyle Du Plessis

    That method appears to be asynchronous - the attribute "private String serialNumber;" doesn't get set since the data is not properly available, hence the 'null'. Is there an easier way to access the serialNumber value outside the asynchronous method's scope?

    0
    评论操作 固定链接
  • DJI Developer Support
    There is no other way. I think this is the property of the serial number. Once the aircraft is connected with the MSDK, each component is connected afterwards, you have to asynchronously get the flightController object and its serial number.
    0
    评论操作 固定链接

请先登录再写评论。