![]() right at that moment it was char ‘b’ but it also can show char ‘d’ and ‘c’ depending how long it will run. Via serial monitor with CR LF line ending I`m sending this string:ĪbcdefghijklmnopqrstuvwxyzOKabcdefghijklmnopqrstuvwxyzĪfter OK is found serial_flush() is executed but after second run there serial.available() shows there is something in serial buffer. Does DiscardOutBuffer() work similar to fflush() in C Can you please give me any. Probably buffer should be cleared before the transimission starts. At the beggining, I got some additional data, which are not supposed to be there. If (Serial.findUntil(answer, '\n')) return flag = 1 Guten Tag liebes Forum, Ich suche nach einer Möglichkeit einen input buffer zu flushen. Im writing an application in C /CLI and I have a problem with serial transmission. Serial.println("waited too long nothing received") ![]() put your setup code here, to run once: ![]() As requested: bool receive_command(char answer)
0 Comments
Leave a Reply. |