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.

LAUNCHXL-CC26X2R1: 应用层如何查找组和绑定表

Part Number: LAUNCHXL-CC26X2R1


1. aps_FindGroup()和Zstackapi_ApsFindGroupReq()这个两个函数只有Zstackapi_ApsFindGroupReq()才可以在应用层调用吗?

2. 应用层如何查找绑定表?是使用bindFind()还是其他Zstackapi?

  • 1. 兩個API都可以在應用程序調用

    2. 试试調用bindFindExisting

  • 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++;
        }