Method to check the connection with the bridge