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.

关于GATTServApp_ReadCharCfg问题



static void battNotifyCB( linkDBItem_t *pLinkItem )
{
if ( pLinkItem->stateFlags & LINK_CONNECTED )
{
// uint16 value = GATTServApp_ReadCharCfg( pLinkItem->connectionHandle,
// battLevelClientCharCfg );

// if ( value & GATT_CLIENT_CFG_NOTIFY )
// {
attHandleValueNoti_t noti;

noti.handle = battAttrTbl[BATT_LEVEL_VALUE_IDX].handle;
noti.len = 1;
noti.value[0] = battLevel;

GATT_Notification( pLinkItem->connectionHandle, &noti, FALSE );
// }
}
}  我要是不写这两句 会有什么后果吗?value = GATTServApp_ReadCharCfg( pLinkItem->connectionHandle,
// battLevelClientCharCfg ); 是什么意思?