attemptCounters added
auto connection

1.auto connection if connected to the device last time
2.added button to clear the memory for previous devices