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;
}
```
 

Members online

No members online now.

Forum statistics

Threads
5,697
Messages
39,958
Members
17,056
Latest member
97bugsinthecode