Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years ago.
Serial communication buffer length problem
I have used the demo nRF51822_simple chat to connect with android phone. In the main.cpp, I changed the value of TXRX_BUF_LEN to 50. But the length of received data is still only 20. Can someone help me? Thank u very much.
How long is the data you are sending? If the other end of the link is only sending 20 bytes at a time then it doesn't matter how large the buffer is, you will only get 20 bytes.
posted by Andy A 04 Apr 2016