fdesvallees wrote: I found out the problem was in the board which would close the connection after 2 seconds.
TeenAstro is based on OnStep. What I am going to say applies to OnStep, and probably to TeenAstro as well.
OnStep does not keep the TCP connection open for subsequent communications. As a result, each command has to establish communication as if it is a new connection.
I wrote a
Python API for OnStep
, and I had to connect on every call, when using TCP.