Timeline for What causes Serial.available() to become false after Serial.read() gets data?
Current License: CC BY-SA 3.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 6, 2018 at 14:35 | vote | accept | JRiggles | ||
Feb 6, 2018 at 14:33 | answer | added | user31481 | timeline score: 0 | |
Feb 6, 2018 at 14:23 | history | edited | JRiggles | CC BY-SA 3.0 |
Clarified question, re-worded question title.
|
Feb 6, 2018 at 13:58 | history | edited | JRiggles | CC BY-SA 3.0 |
added 315 characters in body
|
Feb 6, 2018 at 12:50 | comment | added | JRiggles |
@dandavis Thank you for that clarification - That was pretty much what I was asking, but couldn't figure out how to ask (terribly sorry).I suppose it would have been best to phrase the question as 'How does Serial.available() go from true to false ?
|
|
Feb 6, 2018 at 10:12 | comment | added | Nick Gammon♦ | If they weren't, you would only ever be able to receive 64 bytes. Does that sound logical? | |
Feb 6, 2018 at 8:41 | comment | added | Edgar Bonet | See the Wikipedia article Circular buffer. It has some figures and an animation that should help you understand how it works. | |
Feb 6, 2018 at 8:27 | review | Close votes | |||
Feb 7, 2018 at 13:36 | |||||
Feb 6, 2018 at 8:11 | answer | added | Stefan M | timeline score: 2 | |
Feb 6, 2018 at 8:08 | comment | added | user31481 | What do you mean by "removed"? | |
Feb 6, 2018 at 3:53 | comment | added | dandavis | yes, you read() until available() is false, at which point the buffer is considered empty. | |
Feb 6, 2018 at 3:23 | comment | added | jsotola | the only way you can "remove" a byte, is to overwrite it. ... i do not think that the library code does that, because that would be a waste of resources. ... i'm sure that the pointer into the buffer is the only thing that has changed. | |
Feb 6, 2018 at 3:10 | review | First posts | |||
Feb 6, 2018 at 3:20 | |||||
Feb 6, 2018 at 3:05 | history | asked | JRiggles | CC BY-SA 3.0 |