I define the board in my script (code below) and write out a few pins.
board = pins.board_connect(
server_url=os.environ.get("CONNECT_SERVER"),
api_key=os.environ.get("CONNECT_API_KEY")
)
The connection sometimes gets lost in the script and throws an error. ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
I’ve have to re-run board_connect() mid-script before writing the pin and sometimes need to run it twice for it to work.