Quantcast
Channel: 蓝牙论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 7485

请教CC2541属性权限的问题

$
0
0
static gattAttribute_t customTransmitProfileAttrTbl[CUSTOMTRANSMIT_NUM_ATTR_SUPPORTED] =
{
  // CustomTransmit Profile Service
  {
    { ATT_BT_UUID_SIZE, primaryServiceUUID }, /* type */
    GATT_PERMIT_READ,                         /* permissions */
    0,                                        /* handle */
    (uint8 *)&customTransmitProfileService            /* pValue */
  },

    // Characteristic 1 Declaration
    {
      { ATT_BT_UUID_SIZE, characterUUID },
      GATT_PERMIT_READ,
      0,
      &customTransmitProfileChar1Props
    },

      // Characteristic Value 1
      {
        { ATT_BT_UUID_SIZE, customTransmitProfilechar1UUID },
        GATT_PERMIT_READ | GATT_PERMIT_WRITE,
        0,
        customTransmitProfileChar1
      },

      // Characteristic 1 configuration
      {
        { ATT_BT_UUID_SIZE, clientCharCfgUUID },
        GATT_PERMIT_READ | GATT_PERMIT_WRITE,
        0,
        (uint8 *)&customTransmitProfileChar1Config
      },

      // Characteristic 1 User Description
      {
        { ATT_BT_UUID_SIZE, charUserDescUUID },
        GATT_PERMIT_READ,
        0,
        customTransmitProfileChar1UserDesp
      },
};

如上是我的service声明,在ios的lightblue上看到的属性只有read和write,没有notify,请问怎样才能在lightblue上看到notify权限呢?

另外write怎样才是write no response?


Viewing all articles
Browse latest Browse all 7485

Trending Articles