函数zcl_registerAttrList在注册cluster Attribute时,未对链表中的参数pfnAuthorizeCB赋值NULL,但是却对pfnReadWriteCB赋值NULL。这样做是否有程序跑飞的危险?通过ZCL代码流程发现,凡在ZCL读写Cluster Attribute都会触发pfnAuthorizeCB回调操作。
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.
函数zcl_registerAttrList在注册cluster Attribute时,未对链表中的参数pfnAuthorizeCB赋值NULL,但是却对pfnReadWriteCB赋值NULL。这样做是否有程序跑飞的危险?通过ZCL代码流程发现,凡在ZCL读写Cluster Attribute都会触发pfnAuthorizeCB回调操作。