Hello,
Your Processing code is looking for this:
if (finalRead.equals("7320574163")) {
state = 1;
}
You are sending this:
![]()
That is why it is not working.
I previously made this suggestion:
You have to decide what to do:
- Modify your Processing code to look for the String you are sending with the Arduino code you are using as is:
"data: 49 CD 4A A3" - Modify your Arduino code to send a String to match your Processing code.
The data seems to be correct:
The example I provided here sends the correctly formatted String data and Processing is receiving it and it working as expected.
I kept it simple as this is your project.
Give this some more thought.
Try to get it working as is.
Clean it up later.
:)
