Closed divyanshupundir closed 3 years ago
Did you try running the java-client example here? It should handle the error.
The idea is that subscribe()
takes an onCompleted()
and onError()
as arguments, as you can see in the example (here it does latch.countDown()
in both cases). That's how RxJava works (here you're dealing with a Completable
).
It worked perfectly. Thank you.
I am trying to implement the TakeoffAndLand example on Android. I am able to control the copter using my phone. It is just that when I press the takeoff or land button while the execution of the previous command hasn't completely finished, I get a
command denied
error and the app crashes. Is there an elegant way built into the SDK that prevents this from happening?I have added the log messages below:
Thank you.