Other Parts Discussed in Thread: SIMPLELINK-CC13X2-26X2-SDK, LAUNCHXL-CC26X2R1
>> You only need one ICall_EntityID for your application but you will need to register multiple endpoints, clusters, and attributes. Please refer to the SensorTag application code for an example of how this can be >> accomplished.
>>Regards,
>>Ryan
I have one question, if the case of there are many endpoints at same ICall_EntityID.
When perform BINDING with Zstackapi_bdbStartCommissioningReq(ICall_EntityID appEntity, zstack_bdbStartCommissioningReq_t *pReq),
Because is called with "ICall_EntityID appEntity" only, so how do I know that which endpoint is binding?
Example with SimpleLink CC26X2 SDK (2.30.00.34) light&switch application
static ICall_EntityID zclSampleSw_Entity;
.......................................
//Register Endpoint
zclSampleSwEpDesc.endPoint = SAMPLESW_ENDPOINT;
zclSampleSwEpDesc.simpleDesc = &zclSampleSw_SimpleDesc;
zclport_registerEndpoint(zclSampleSw_Entity, &zclSampleSwEpDesc);
//Register Endpoint1
zclSampleSwEpDesc1.endPoint = SAMPLESW_ENDPOINT1;
zclSampleSwEpDesc1.simpleDesc = &zclSampleSw_SimpleDesc1;
zclport_registerEndpoint(zclSampleSw_Entity, &zclSampleSwEpDesc1);
.....................................
binding with: Zstackapi_bdbStartCommissioningReq(zclSampleSw_Entity,&zstack_bdbStartCommissioningReq);
so, what endpoint is binding by above function (SAMPLESW_ENDPOINT or SAMPLESW_ENDPOINT1)?