added the method for connecting to a ble device from the list of detected devices