Only clear the data when connecting to a device initially.  Add messages
when connected or connection lost.  Sleep before trying to reconnect.