MSDK (Android) - Serial number returns "null"

Completed

Comments

3 comments

  • DJI Developer Support
    Please try the latest 4.16.2 version. Are you able to see the serial number in DJI FLY app?
    0
    Comment actions Permalink
  • 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
    Comment actions Permalink
  • 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
    Comment actions Permalink

Please sign in to leave a comment.