Disconnect after a few second

Hello!

I am using a nRF52840 board for some really simple development.
First I just tried to run the blinky example and connected with another BT device. It worked well but after a few seconds I just totally lost the connection and needed to connect again.
Do you know how can I solve it?

My main goal will be to create a simple GATT service with indicate, and notify flags and do some 1-2 hour term testing.
If somebody has any simple example code for this I would appreciate that.

  • Hi,

    Let me describe my situation. I am using the hrs_freetos example code.

    I created a GATT service characteristic with a notify flag. If I try to read without acquiring, the reading does not work and I get an error. On the other hand, if I activate the acquire notify function, the reading goes on without any problems. I think that would be good behavior.

    However, in the same way, it works differently in the case of indication. I can read there without any errors even without acquiring. Is this normal? 
    Does acquiring indications mean that the other side of the communication will send an acknowledgment back after receiving new data? If yes, how can we test if our device sent acknowledgment to the Nordic?

    BR,

    Bálint

  • By "acquire" do you mean enabling indications in the CCCD?

    With indications the peer has to ACK that they has received data, which will generate the BLE_GATTS_EVT_HVC event in the application.

    Indication is done like this:

Related