/* Command response callback function for sd_ble_gatts_attr_get BLE command. 
Callback for decoding the output parameters and the command response return code. */
static uint32_t gatts_attr_get_rsp_dec(const uint8_t *p_buffer, uint16_t length)
/* Command response callback function for sd_ble_gatts_attr_get BLE command. 
Callback for decoding the output parameters and the command response return code. */
static uint32_t gatts_attr_get_rsp_dec(const uint8_t *p_buffer, uint16_t length)
{
    uint32_t result_code;
    const uint32_t err_code = ble_gatts_attr_get_rsp_dec(
        p_buffer,
        length,
        (ble_gatts_attr_md_t **)&mp_out_params[0],
        &result_code);
    APP_ERROR_CHECK(err_code);
    return result_code;
}