If you are using the password generated by teamviewer, it has expired. That password only last a short time, the idea is that someone using the computer can tell it to someone trying to connect and help.
What you need to do is create an set a user(you) defined password.
at the PC open the teamviewer window by double clicking the teamviewer icon.
At the top left click extras/then choose Options, a windows should open, make sure the checkbox is marked that says "start Teamviewer with windows".
on the left choose Security, you should then see a spot in the right hand pane to enter a "User defined password"
enter any password you like, click ok.
Remember the password you choose, because teamviewer will not show it to you on any screen.
Click ok in the lower right.
Restart the computer and you should be able to connect with your device using the user ID and password yo just created.