I need to be able to send data from my phone (android) via bluetooth. I use an app on the phone called: Simple Bluetooth terminal.
But i can’t recive anything…
I know that the module is correctly set up and configured.
Since I can send and receive data in Arduino IDE via serial monitor
see the pictures below:
Replace the soft-uart node with the uart-1 node. The uart-1 node corresponds to the 2nd serial port on your Arduino Mega (D18=TX1, D19=RX1). I don’t have a HC-05 device, so I can’t test your patch.
Now I can at least see that I am receiving a signal from my phone to the arduino.
When I send the number 50. The number changes from 0 to 10 in the Watch node. But the value always shows 10. even if I send other values from my phone se pictures.
Any idea what could be the problem?
Many many thanks for the help
How many bytes are being sent? If more than one byte is sent, one read-byte node isn’t going to clear the is-available to cause it to pulse again.
I don’t see read-line built-in to XOD. It implies reading until a newline character, which may or may not get sent (maybe it just reads available bytes and returns string).
You could look into using read-bytes, even if only as a test to verify what is being sent. You could use clock to pulse read-bytes-READ every few seconds and see how many times output updates for a single message you are sending.