{"id":429,"date":"2019-04-23T17:50:37","date_gmt":"2019-04-23T17:50:37","guid":{"rendered":"https:\/\/arduino-developer.com\/arduino\/?p=429"},"modified":"2019-04-23T17:51:06","modified_gmt":"2019-04-23T17:51:06","slug":"uart-rx","status":"publish","type":"post","link":"https:\/\/arduino-developer.com\/arduino\/programming\/uart\/uart-rx","title":{"rendered":"UART RX"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Clearing the incoming Serial buffer<\/h4>\n\n\n\n<p>The flush() method only clears the transmit buffer, it has no effect on the rx buffer. This code will clear the receive buffer:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>  while(Serial.available())\n    Serial.read();<\/code><\/pre>\n\n\n\n<p><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Clearing the incoming Serial buffer The flush() method only clears the transmit buffer, it has no effect on the rx buffer. This code will clear the receive buffer:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[],"class_list":["post-429","post","type-post","status-publish","format-standard","hentry","category-uart"],"_links":{"self":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts\/429","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/comments?post=429"}],"version-history":[{"count":2,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts\/429\/revisions"}],"predecessor-version":[{"id":431,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/posts\/429\/revisions\/431"}],"wp:attachment":[{"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/media?parent=429"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/categories?post=429"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arduino-developer.com\/arduino\/wp-json\/wp\/v2\/tags?post=429"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}