public GPSDataRetriever(DroneControl droneCtrl) { count = 0; drone = new TelnetConnection(droneCtrl.droneConfig.DroneIpAddress, 23); Disconnect(); System.Threading.Thread.Sleep(1000); Connect(); }
private void Connect() { telnetConnection = new TelnetConnection(droneIpAddress, defaultDronePort); telnetConnection.Read(); }