This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Phone app receives remnants of previous packet sent

Hello,

I'm currently using nrf8001 to sent a 20-byte packet. It works fine and my phone application receives the right data. However, when I send another packet that has fewer bytes, that's when a problem occurs.

Here is what it looks like:

Header: 0x16, 0x15, 0x03

Payload sent (20 bytes): A B C D E F G H I J K L M N P Q R S T

Phone receives:  A B C D E F G H I J K L M N P Q R S T

Header: 0x08, 0x15, 0x03

Next payload sent (6 bytes): H E L L O !

Phone receives: H E L L O ! G H I J K L M N O P Q R S T

Why does this happen?

Related