Hello,
I am trying to send out a notification and getting this error code 13313 (in decimal, 0x3401 in hex). Which eventually leads to BLE_ERROR_GATTS_SYS_ATTR_MISSING. What system attribute am I missing here?
Thank you.
Hello,
I am trying to send out a notification and getting this error code 13313 (in decimal, 0x3401 in hex). Which eventually leads to BLE_ERROR_GATTS_SYS_ATTR_MISSING. What system attribute am I missing here?
Thank you.
You will get this error when the CCCD of the characteristic hasn't been set. You can set it with:
err_code = sd_ble_gatts_sys_attr_set(m_conn_handle, NULL, 0, 0);
APP_ERROR_CHECK(err_code);
Is it possible that the client has not bonded yet? This is really weird because I have another service which is BAS and I am able to read and receive notifications on the same client. I also made sure that I am calling BLE_GAP_CONN_SEC_MODE_SET_OPEN(cccd).
Is it possible that the client has not bonded yet? This is really weird because I have another service which is BAS and I am able to read and receive notifications on the same client. I also made sure that I am calling BLE_GAP_CONN_SEC_MODE_SET_OPEN(cccd).