MSDK (Android) - Serial number returns "null"
已完成Good 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());
}
});
}
请先登录再写评论。
评论
3 条评论