return size of handle/value pair that fits into PDU instead of full size

This commit is contained in:
matthias.ringwald@gmail.com 2014-01-30 13:38:11 +00:00
parent fdcab360f7
commit b8d93d45b3

View File

@ -498,6 +498,7 @@ static uint16_t handle_read_by_type_request2(att_connection_t * att_connection,
if (offset + pair_len > response_buffer_size) {
if (offset > 2) break;
it.value_len = response_buffer_size - 4;
response_buffer[1] = it.value_len;
}
// store