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.

CC2541: the include or secondary services

Part Number: CC2541


how to add the include service within the simpleProfileAttrTbl,thanks

  • Hi,

    You can see an example from the HIDEmuKbd project:

    static gattAttribute_t hidAttrTbl[] =
    {
    // HID Service
    {
    { ATT_BT_UUID_SIZE, primaryServiceUUID }, /* type */
    GATT_PERMIT_READ, /* permissions */
    0, /* handle */
    (uint8 *) &hidService /* pValue */
    },

    // Included service (battery)
    {
    { ATT_BT_UUID_SIZE, includeUUID },
    GATT_PERMIT_READ,
    0,
    (uint8 *)&include
    },

    Best wishes
  • Hi,
    I knew this,but i don't know any more details about that.it's just added the include UUID, how can i know it's the battery service?
    thanks