This commit is contained in:
Derzsi Dániel 2022-08-18 19:11:42 +02:00 committed by GitHub
commit 79fadbdc92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,8 @@ coffee_machine_ip = '10.10.42.42'
password = '1234'
password_prompt = 'Password: '
time.sleep(17)
con = telnetlib.Telnet(coffee_machine_ip)
con.read_until(password_prompt)
con.write(password + "\n")