您好!
我将 CC2340R5 based_ble 外设 代码与 ANCS 结合使用。
此处显示了 外设和绑定设置中特性的 GATT 权限
static gattAttribute_t simpleGattProfile_attrTbl[] =
{
/*------------------type-----------------*/ /*-----------permissions-----------*/ /*-----------------pValue----------------*/
// Simple Profile Service
GATT_BT_ATT( primaryServiceUUID, GATT_PERMIT_READ, (uint8 *) &simpleGattProfile_Service ),
//**********************************************************************************************************************************
// Characteristic 1 Declaration
GATT_BT_ATT( characterUUID, GATT_PERMIT_READ, &simpleGattProfile_Char1Props ),
// Characteristic Value 1
GATT_ATT( simpleGattProfile_char1UUID, /*GATT_PERMIT_READ |*/ GATT_PERMIT_WRITE, &simpleGattProfile_Char1 ),
// Characteristic 1 User Description
// GATT_BT_ATT( charUserDescUUID, GATT_PERMIT_READ | GATT_PERMIT_WRITE, simpleGattProfile_Char1UserDesp ),
//**********************************************************************************************************************************
GATT_BT_ATT( characterUUID, GATT_PERMIT_READ, &simpleGattProfile_Char4Props ),
// Characteristic Value 4
GATT_ATT( simpleGattProfile_char4UUID, /*GATT_PERMIT_READ|*/GATT_PERMIT_WRITE, &simpleGattProfile_Char4 ),
// Characteristic 4 configuration
GATT_BT_ATT( clientCharCfgUUID, GATT_PERMIT_READ | GATT_PERMIT_WRITE, (uint8 *) &simpleGattProfile_Char4Config ),
//**********************************************************************************************************************************

使用 Android、无需密钥、我可以使用外设进行连接。 当尝试连接移动设备时、 需要在 iPhone 上提供密钥。 但 我需要 在没有任何安全连接的情况下连接 iPhone。
此处是 来自 TI GitHub 的 ANCS 源代码链接
需要了解在没有任何 安全连接的情况下连接 iPhone 需要进行哪些更改。
SDK 版本: simplelink_lowpower_f3_sdk_7_40_00_64 (外设)
CCS 版本:CCS 12.5.0
谢谢。
Vignesh。
