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.

CC2340R5: Implement multi-byte notify based on single byte notify

Part Number: CC2340R5

Tool/software:

I need Implement multi-byte notify based on single byte notify, the single byte notify based on basic_ble_LP_EM_CC2340R5_freertos_ticlang, can anyone help me?

  • Hello Peter,

    Thank you for reaching out! If I'm understanding correctly, you'd like to increase the number of bytes sent out by the notification, inside the basic_ble example.

    If that's the case, the fix should be relatively easy, as this is a commonly asked question!

    Ultimately, if you're using the GATTServApp_ProcessCharCfg() function, the function will lead to theSimpleGattProfile_readAttrCB callback. In the out of box example, the callback only manages 1 byte as seen below:

            *pLen = 1;
            pValue[0] = *pAttr->pValue;


    however, simply changing this to a memcpy, as seen below, should fix the issue.

    *plen = x; // where x is the number of bytes
    memcpy(pValue, pAttr->pValue, x);

    I hope this helps! If this doesn't fix the issue, please provide me with more details regarding what you're seeing and I'll make sure to help!

    Best Regards,

    Tarek D