Hello Tello Pilot!
Join our DJI Tello community & remove this banner.
Sign up

streamon Unknow command

Tewni

New member
Joined
May 21, 2020
Messages
1
Reaction score
0
Hello, when I am sending "streamon" command I get this; Unknown command
All other commands work perfectly.
This is my c# code
```cs

static UdpClient udpClient = new UdpClient(8889);
static bool first = false;
public static string GetUDP(string command = "")
{
string final = "Failed";
Thread.CurrentThread.IsBackground = true;
IPEndPoint RemoteIpEndPoint = new IPEndPoint(IPAddress.Parse("192.168.10.1"), 8889);
udpClient.Client.ReceiveTimeout = 5000;
udpClient.Client.SendTimeout = 5000;
udpClient.Connect(RemoteIpEndPoint);
Byte[] sendBytes = Encoding.ASCII.GetBytes(command);
udpClient.Send(sendBytes, sendBytes.Length);
Byte[] receiveBytes = udpClient.Receive(ref RemoteIpEndPoint);
final = Encoding.UTF8.GetString(receiveBytes);
// MessageBox.Show(final);
if (first == false && final == "OK") { first = true; MessageBox.Show("Connected to your Tello drone!"); }
else if (first == false && final != "OK") { first = true; MessageBox.Show("Failed to connect to Tello Drone! Please restart"); first = true; }
return final;
}
```
 

New Threads

Members online

Forum statistics

Threads
4,381
Messages
32,643
Members
11,269
Latest member
Carlos Moreno