sc(5) | |
p("Drone Commander 1.1\n") | |
p("By: Ferdinand Silva\n") | |
p("-------------------\n") | |
command_connection = netc("udp", "192.168.10.1:8889") | |
netw(command_connection, "command") | |
fl (0, 0) | |
sc(3) | |
p(">>> ") | |
sc(4) | |
cmd = r("") | |
if (!(cmd == "")) | |
if (cmd == "exit") | |
netx(command_connection) | |
ex(0) | |
fi | |
netw(command_connection, cmd) | |
response = netr(command_connection, 1024) | |
sc(5) | |
p("\nDrone response: " + response + "\n") | |
fi | |
lf |