cc2640 从机如何自动使能notify功能?

skevil 2015-09-02 06:16:31
请问 cc2640的从机能不能实现自动使能notify的功能?
我在cc2541上看到了这段代码 ,应该是自动使能notify功能的函数
/*********************************************************************
* @fn simpleProfile_HandleConnStatusCB
*
* @brief Simple Profile link status change handler function.
*
* @param connHandle - connection handle
* @param changeType - type of change
*
* @return none
*/
static void testProfile_HandleConnStatusCB( uint16 connHandle, uint8 changeType )
{
// Make sure this is not loopback connection
if ( connHandle != LOOPBACK_CONNHANDLE )
{
// Reset Client Char Config if connection has dropped
if ( ( changeType == LINKDB_STATUS_UPDATE_REMOVED ) ||
( ( changeType == LINKDB_STATUS_UPDATE_STATEFLAGS ) &&
( !linkDB_Up( connHandle ) ) ) )
{
GATTServApp_InitCharCfg( connHandle, testProfileChar2Config );
GATTServApp_InitCharCfg( connHandle, testProfileChar3Config );
}
}
}


我用同样的方法则没办法在cc2640上编译通过
报错内容是
Error[Li005]: no definition for "linkDB_Register" [referenced from C:\ti\simplelink\ble_cc26xx_2_01_00_44423\Projects\ble\SimpleBLEPeripheral\CC26xx\IAR\Application\CC2640\FlashROM\Obj\testprofiles.o]
Error while running Linker

但是我已经包含了#include "linkdb.h"头文件了
各位大神求救咧,,,万分感谢
...全文
1681 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
耗子0_0 2015-09-24
  • 打赏
  • 举报
回复
自动使能 notify 是什么?用来做什么?不太理解你提的问题

3,846

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 无线
社区管理员
  • 无线
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧