Update – gateway.py – Python module ‘telnetlib’ (used to send and receive TCP data packets) is deprecated in Python version 3.11 and will be removed in version 3.13. Replaced with socket.sendall and socket.recv(1). As there is no direct replacement for telnetlib.readline(), a separate program thread has been created to read the socket stream until a newline character has been detected and compose a message queue, which is read line by line by the main program thread. + Update – gateway.py – a logfile to monitor incoming ‘heartbeat’ messages is created at ‘/var/www/logs/gateway_heartbeat.log’. The logfile is automatically emptied at midnight each day. #489