MSDK (Android) - Serial number returns "null"
CompletedGood day,
I'm getting "null" when requesting the drones serial number [serialNumber = s;]? Please advise. I'm using the DJI Mini SE and DJI Air 2S, with DJI MSDK 4.16 (Android).
Sample:
Aircraft aircraft = (Aircraft) DJISampleApplication.getProductInstance();
if (null != aircraft.getFlightController()) {
flightController = aircraft.getFlightController();
flightController.getSerialNumber(new CommonCallbacks.CompletionCallbackWith<String>() {
@Override
public void onSuccess(String s) {
serialNumber = s;
}
@Override
public void onFailure(DJIError djiError) {
ToastUtils.setResultToToast("getSerialNumber failed: " + djiError.getDescription());
}
});
}
Please sign in to leave a comment.
Comments
3 comments