I’m using the python SDK to establish a connection with the hologram nova modem. Everything works well, but occasionally the connection is lost. When connection is lost, I would like to kill the existing PPP session and loop until a new one is created successfully. However, calling disconnect to ensure the previous session is disconnected, followed by connect, yields the message “Existing PPP session(s) are established by pid(s) . Please close/kill these processes first.” How can I correctly kill the previous session in the python script? Also how can I find the process id so I can kill the session with a subprocess call if necessary?
I have also gotten a network unreachable error on the second connection attempt when the initial attempt fails but doesn’t crash with the existence error.
Thanks for the help