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.

Expand data sent via notification

I am using the simpleBLEperipheral sample code and trying to periodically take some readings from ADCs and an accelerometer then send the 13 Bytes of via the Characteristic4 notification.

When I try to send anything larger than a byte, nothing shows up in LightBlue when listening for notifications. How can I expand the characteristic to accept and send 13 (or more) bytes?

  • Hello.  The length of each characteristic is defined in the profile. For example, in the simpleBLEPerpiheral project, in the simpleGattProfile(.c), most characteristics are configured to one byte. Characteristic 5 is configured to five byte however:

    // Characteristic 5 Value
    static uint8 simpleProfileChar5[SIMPLEPROFILE_CHAR5_LEN] = { 0, 0, 0, 0, 0 };

    Using this as a base, you can modify this or add a similar characteristic which is 13 byte.

  • Thank you for the quick response, but does anyone have an example of doing this? I'm trying to add a characteristic similar to that of Char5, but even though it all compiles I cant get the characteristic to show up on any sniffing applications. 

    Thanks again,

    Andrew

  • Hi Andrew,

    You just need to change length of macro and according modification in code.

    Can you share code that you have modified  if possible? It'll be helpful.

    Thanks.