using pings to keep connections alive since puback does not work on gateway