vandy commented on PR #1846:
URL: https://github.com/apache/mynewt-nimble/pull/1846#issuecomment-2281085513

   Right now the nimble stack takes all attribute data from an application and 
truncates it to be the size of MTU (actually MTU - 1). E.g. attribute length is 
500 bytes, MTU is 23 bytes. So the application copies 500 bytes to the provided 
mbuf, and then nimble stack copies only 22 bytes according to an offset.
   
   I think it would be nice to allow the application callback to provide only 
part of the data (as it already knows the offset and could obtain mtu length 
information). What do you think?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to