kodee is String type
inputString also
When the GM65 scanning the code, "inputString" will be same with "kodee" but it didn't go to the first statement
It skipped to the else statement, I tried change "kodee" to char but it still not working.
Is there something wrong or missing ?
Thanks for help
Pict : Serial monitor when the scanner scan the code, it matched but not for arduino
I suspect that inputString contains a control character (maybe a newline). Print out the length of each string and see if they match then you'll know there is some other character in inputString.
When the GM65 scanning the code, "inputString" will be same with "kodee" but it didn't go to the first statement
It skipped to the else statement, I tried change "kodee" to char but it still not working.
A String type variable can contain non-printable characters. If your Arduino tells you they aren't equal, there is a difference.
I have a project that using QRCode Scanner (GM65) and the program it's look like this
No, that's not your program, that's just an excerpt. Post sketches that at least compile, otherwise we usually expect the error to be in that part of the sketch, you're hiding from us.
pylon:
No, that's not your program, that's just an excerpt. Post sketches that at least compile, otherwise we usually expect the error to be in that part of the sketch, you're hiding from us.