Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • Thanks for the tips, really using the "delay ()" to simulate waiting for the command to be run completely is quite common in the tutorials on the internet. Everyone who saw makes use of this function! Your article helped me better understand the operation of the serial communication, but applied some concepts that you had not got success, the answer still comes incomplete. As you mentioned in answer, apparently the buffer does not contain the size of the command response. I increase the buffer size? Commented Nov 2, 2016 at 0:08
  • If you remove the delay and read the bytes as they arrive the size of the buffer is irrelevant. Commented Nov 2, 2016 at 0:10
  • I removed the sleeps but did not work. Any idea what could be? Thank you for your support. Commented Nov 2, 2016 at 1:48
  • If you show your new code we might be able to see where you are going wrong... Commented Nov 2, 2016 at 11:13