|
查看: 4930|回复: 1

3 endpoints

[复制链接]

33

主题

27

回帖

487

积分

璀璨钻石

积分
487
发表于 2025-2-9 12:11:44 | 显示全部楼层 |阅读模式 来自 韩国
information
说明:   建议参照本版块置顶帖内容输入必要信息
芯片型号: TLSR8258
SDK及版本: telink_zigbee_ble_concurrent_sdk_v2.4.0.1
I add 3 endpoints as below.
======================

        /* Register endPoint */
    printf("===========1===============\r\n");
        af_endpointRegister(SAMPLE_LIGHT_ENDPOINT, (af_simple_descriptor_t *)&sampleLight_simpleDesc, zcl_rx_handler, NULL);
    printf("===========2===============\r\n");
        af_endpointRegister(SAMPLE_PIR_SENSOR_ENDPOINT, (af_simple_descriptor_t *)&samplePIRSensor_simpleDesc, zcl_rx_handler, NULL);
    printf("===========3===============\r\n");
        af_endpointRegister(SAMPLE_LIGHT_SENSOR_ENDPOINT, (af_simple_descriptor_t *)&sampleLightSensor_simpleDesc, zcl_rx_handler, NULL);

        /* Register ZCL specific cluster information */
    printf("===========4===============\r\n");
        zcl_register(SAMPLE_LIGHT_ENDPOINT, SAMPLELIGHT_CB_CLUSTER_NUM, (zcl_specClusterInfo_t *)g_sampleLightClusterList);
    printf("===========5===============\r\n");
        zcl_register(SAMPLE_PIR_SENSOR_ENDPOINT, SAMPLEPIRSENSOR_CB_CLUSTER_NUM, (zcl_specClusterInfo_t *)g_samplePirSensorClusterList);
    printf("===========6===============\r\n");
        zcl_register(SAMPLE_LIGHT_SENSOR_ENDPOINT, SAMPLELIGHTSENSOR_CB_CLUSTER_NUM, (zcl_specClusterInfo_t *)g_sampleLightSensorClusterList);
    printf("===========7===============\r\n");
======================




Result :
======================
===========4===============<CR><LF>
zcl?group?register?==================?ep-1, manuCode-0x0<CR><LF>
===========5===============<CR><LF>
zcl_group?register?==================?ep-2, manuCode-0x0<CR><LF>
===========6===============<CR><LF>
===========7===============<CR><LF>
======================

But It seems that 3rd endpoint is not registered.
What is problems ?

33

主题

27

回帖

487

积分

璀璨钻石

积分
487
 楼主| 发表于 2025-2-9 16:49:56 | 显示全部楼层 来自 韩国
It is issue of ZCL_CLUSTER_NUM_MAX.
It is fixed after I change value of ZCL_CLUSTER_NUM_MAX

本版积分规则

关注公众号
隐私政策|Telink forum

相关侵权、举报、投诉及建议等,请发 E-mail:forum@telink-semi.com

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.|沪ICP备17008231号-1 |沪公网安备31011502403548号

在本版发帖返回顶部
公告×