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

Disconnect from peripheral gives an error on central side(from App nRFConnect)

Dear Sir,

I am working on SDK15,nrf52832 and soft device S132.

I was working on the following scenario.

A peripheral device advertise as soon as it is switched ON.

I was using nRFConnect(from Android phone) to connect to peripheral.

On the peripheral side I have written the code to disconnect the device immediately.

This "Disconnect" from the peripheral side is done by calling the function

err_code = sd_ble_gap_disconnect(m_conn_handle/*pp_ble_evt->evt.gatts_evt.conn_handle*/,//gk modified
                                             BLE_HCI_REMOTE_USER_TERMINATED_CONNECTION);
if(err_code == NRF_SUCCESS)
{
NRF_LOG_INFO("Success");
}else
{
NRF_LOG_INFO("Failure");
}
     APP_ERROR_CHECK(err_code);

The error code returned(on peripheral side is success.

But in the phone(where nRFConnect was installed) I was getting the following error value...

It shows "Error 133(0x85):GATT ERROR"...

Is it an expected behaviour?

Is there anything to do with compatibility mode?

If it is not, how can I resolve it.

Thanking you in advance,

with regards,

Geetha

Parents Reply Children
No Data
Related