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

About controlling Bluetooth Low Energy data flow

Hi.

I tired searching around the web but I did not find clear information about this. Maybe the answer is too obvious for anyone to write about.

Problem that i'm facing:

I have an NRF52 bluetooth module (SDK 15)  which receives data over BLE and sends it to UART with flow control enabled. Sending to UART is done in "nus_data_handler" and if UART for some reason cannot accept more data, it will wait on BLE_NUS_EVT_RX_DATA event and try to send it. This event should be quickly processed, or the connection will fail.

My question is, how can i tell the sender, that do not send more data?

From what i understand, there is no flow control readily available for BLE, but there are notifications which should tell the sender if data is accepted or not. I have slightly read about notifications and indications, but they were not easy to understand.

Related