I have a code on the TV, a different code through the app and neither seems to be working to connect.
Can you try to restart both devices and then try again according to the steps mentioned in this article to link your controller?
When you have a wireless connection, try as well to see if it works better with the TV with a wired connection.