Currently I am working on writing the code in order to create a Bluetooth lock for a school project, since i am in charge of the tech while my partner works on the physical, and I am having trouble with the language as I am new to coding.
In order to make it work, I am using a WiFly model Rn-Xv 171, which I have connected to the arduino via analog inputs 4 and 5, and I have a red LED to represent the mechanism of the lock connected to digital output 8. (picture of setup below)
I attached a photo of the code below, and my problem is that I cannot get the code to compare the guessed password and the real password correctly. As you can see I converted both variables, the stored "real" password and the "guessed" password, to String. Initially they were both Int, but it returned "password incorrect", even though the gpassword and the password looked exactly the same. I then switched to String, but to no avail. Any help would be greatly appreciated.