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.

Characteristic4 of Simple Profile

Hello, I have a 64 bit data to send (every 10ms) from the Keyfob to the Dongle. What is the best way of sending it? I am modifying the charasteristic4 of the simple profile into a uint8 array (size of 8). Is this the simplest way to make it done? thx

  • Yes, you can use an array. You will just need to modify the "SetParam" function to copy each array element or use osal_memcpy when setting a new value of the array from the application. You will also need to make sure to copy the full 8 bytes into the structure when sending the notification.

  • Thanks Willis! I looked into the SimpleProfile_SetParameter() function. The notification is processed by constructing a attHandleValueNoti_t and then pass it into GATT_Notification().

    All I need to do is

    1)to modify the attHandleValueNoti_t.len parameter to 8 

    2)and then copy the data into attHandleValueNoti_t.value[] array.

    Is that right?

     

    Q