cc2640 从机怎么自动使能notify功能

cc2640 从机怎么自动使能notify功能

cc2640 从机如何自动使能notify功能?
请问 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"头文件了
各位大神求救咧,,,万分感谢
------解决思路----------------------
自动使能 notify 是什么?用来做什么?不太理解你提的问题