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);
Hello Petter,
it's not clear for me why the CCCD is not set. Isn't the sd_ble_gatts_characteristic_add() function expected to set a characteristic and its CCCD in the stack?
When does the BLE_ERROR_GATTS_SYS_ATR_MISSING error come? Does it come when the GATT client wants to write in the CCCD the first time (register to notification for instance)?
Hello Petter,
it's not clear for me why the CCCD is not set. Isn't the sd_ble_gatts_characteristic_add() function expected to set a characteristic and its CCCD in the stack?
When does the BLE_ERROR_GATTS_SYS_ATR_MISSING error come? Does it come when the GATT client wants to write in the CCCD the first time (register to notification for instance)?