I'm working on making a keypad with a password, and I want to be able to change the password using the "password.set" function, but whenever I pass the String that contains the password, as follows:
It errors: No matching function for call to 'Password::set(String&)'
However, if I replace it with this, it works fine: password.set("4321");
Heres some snippets from my code:
// Defines the new String at the beginning of the code. String newPassword; // Detects the key that is pressed and appends it to the String. newPassword = newPassword + eKey; // Set the password after the * has been pressed. password.set(newPassword);
Here more details on the project i'm doing: http://bildr.org/2011/05/arduino-keypad/