[gateway] Add property "use_ftp"

This commit is contained in:
remittor
2023-10-05 15:19:37 +03:00
parent 6c880cbb42
commit 1e0161f4c0
2 changed files with 15 additions and 8 deletions
+2 -1
View File
@@ -164,12 +164,13 @@ if gw.use_ssh:
print("Running SSH server on port {}...".format(gw.ssh_port))
else:
print("Running TELNET and FTP servers...")
gw.use_ftp = True
requests.get(gw.apiurl + "xqnetdetect/netspeed")
time.sleep(0.5)
gw.passw = 'root'
gw.ping(contimeout = 8)
gw.ping(contimeout = 12)
print("")
print("#### Connection to device {} is OK ####".format(gw.device_name))