1. aps_FindGroup()和Zstackapi_ApsFindGroupReq()这个两个函数只有Zstackapi_ApsFindGroupReq()才可以在应用层调用吗?
2. 应用层如何查找绑定表?是使用bindFind()还是其他Zstackapi?
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.
1. aps_FindGroup()和Zstackapi_ApsFindGroupReq()这个两个函数只有Zstackapi_ApsFindGroupReq()才可以在应用层调用吗?
2. 应用层如何查找绑定表?是使用bindFind()还是其他Zstackapi?
1.两个都可以在应用层调用
2.关于bind,除了YiKai说的,还可以参考
BindingEntry_t* bEntry = bindFind( bdb_reportingClusterEndpointArray[i].endpoint,bdb_reportingClusterEndpointArray[i].cluster,0 );
if(bEntry != NULL)
{ //Found a binding with the given cluster and endpoint, mark the Endpoint-cluster entry (this activates reporting)
if( FLAGS_CHECKFLAG( bdb_reportingClusterEndpointArray[i].flags, BDBREPORTING_HASBINDING_FLAG_MASK ) == BDBREPORTING_FALSE )
{
bdb_RepMarkHasBindingInEndpointClusterArray( bdb_reportingClusterEndpointArray[i].endpoint, bdb_reportingClusterEndpointArray[i].cluster, BDBREPORTING_FALSE, BDBREPORTING_IGNORE );
}
numMarkedEntries++;
}