it's an error prone way to scan the incoming buffer for a specific string... As you empty the incoming buffer very fast, you could get the O in the first scan and the K in the second scan and your code will never see the "OK"
it's an error prone way to scan the incoming buffer for a specific string... As you empty the incoming buffer very fast, you could get the O in the first scan and the K in the second scan and your code will never see the "OK"