Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more
1 vote
Accepted

How to optimize checking for specific string in a UART stream

Here is an idea that may work: instead of buffering the input stream and comparing the buffer with the search string, you could do the comparison on the fly, as you receive the characters. Then you ...
Edgar Bonet's user avatar
  • 43.2k

Only top scored, non community-wiki answers of a minimum length are eligible