The code that I converted from python 2 to 3 and did not work the flip command on the PC was from github
Tello-Python.
The code that I wrote on my samsung tab3 which does work is the following:
print("This is console module")
import socket
tello = ("192.168.10.1", 8889)
# create udp socket
try:
socket = socket.socket (socket.AF_INET, socket.SOCK_DGRAM)
except socket.error:
print("error in connection")
exit()
while 1:
message = input("> ")
print(message)
if message == "exit" :
print ("goodbye")
break
message = message.encode()
try:
socket.sendto(message,
tello)
data, ip = socket.recvfrom(1024)
print ("{}: {}".format (ip, data.decode()))
except socket.error:
print ("error {}".format(socket.error))
exit()