This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC1352P7: Long notifications

Part Number: CC1352P7


I am really confused.

I have an implementation of msg_ReadAttrCB(), which writes the data of various length (text message). And most times everything works pretty well and as expected, except sometimes the phone cannot agree with the device, and MTU is suddenly very low.

There is an implementation of messenger profile:

msg_ReadAttrCB( connHandle, *pAttr, *pValue, *pLen, offset, maxLen, method ) {}

Ok, say the stack is reading the value, and maxLen = 20, offset = 0, I am trying to push notification of length = 40.

How do I tell the stack this is incomplete response? The obvious answer is to set pLen = 40, and since it is obviously larger than maxLen, the stack will call the same msg_ReadAttrCB() again later, with a different offset... But if I am trying to do that, the stack is raising error 0x1b bleInvalidMtuSize.

And I feel I don't really understand the logic of the stack.

How do I send the long notification?