Hello everyone
I gotta do a work for school and I need the erase all datas on the Serial3 before sending a number to a mobile app, so I can display only the number. Someone help me please :o
Thx
Hello everyone
I gotta do a work for school and I need the erase all datas on the Serial3 before sending a number to a mobile app, so I can display only the number. Someone help me please :o
Thx
Post your code.
Post a clear statement of the problem.
if(c == 'K'){
Serial3.println(temp);
}
When the Arduino receive the letter 'K' from the phone, it is supposed to send back the var "temp" to the app (i'm using a bluetooth module HC05). But the phone does not display only the var temp, but also the letter K and the other letters i've sent before. So I just wanna clear everything in the serial3 so the application only displays the var 'temp'.
You'll find a sample of the MIT AI2 code i'm using
You'll find a sample of the MIT AI2 code
I have no idea what that is.
But the phone does not display only the var temp, but also the letter K and the other letters i've sent before. So I just wanna clear everything in the serial3 so the application only displays the var 'temp'.
The phone will only display what you wrote to the Serial3 instance.
Post ALL of your Arduino code.
Have a look at the examples in Serial Input Basics - simple reliable ways to receive data.
It also explains how to empty the input buffer.
It should not be necessary to empty the output buffer - the data in it will be sent (and the buffer emptied) even if there is nothing receiving the data,
...R