Closed abencomo closed 7 years ago
I'm using the newUdpConnection(null) method, but it never connects because droneApi.executeAsyncAction() is never executed since this.droneApiRef is always null.
@Override protected void onResume() { super.onResume(); if(this.drone.isConnected()) { this.drone.disconnect(); } else { ConnectionParameter connectionParams = ConnectionParameter.newUdpConnection(null); this.drone.connect(connectionParams); } if(this.drone.isConnected()) { alertUser("Drone Connected"); } }
Never mind. The TowerListener is required for this.droneApiRef to be initialized.
I'm using the newUdpConnection(null) method, but it never connects because droneApi.executeAsyncAction() is never executed since this.droneApiRef is always null.