I have some issues connecting to telnet and I'm getting the following error when running the telnet.sh script with expect:
spawn telnet 192.168.4.1
Trying 192.168.4.1...
Connected to 192.168.4.1.
Escape character is '^]'.
Connection closed by foreign host.
send: spawn id exp4 not open
while executing
"send "$cmd\r""
("foreach" body line 2)
invoked from within
"foreach cmd $commands {
send "$cmd\r"
expect "$ "
}"
I get a constant mqtt response in the arduino output so I know I have connection.
Hi and thank you for this worderful script.
I have some issues connecting to telnet and I'm getting the following error when running the telnet.sh script with expect:
I get a constant mqtt response in the arduino output so I know I have connection.
Any hints on how to resolve this?