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.

应该怎么控制窗帘?

对窗帘的控制应该怎么操作呢?回调函数注册用zclGeneral_RegisterCmdCallbacks还是zclClosures_RegisterCmdCallbacks?

急用啊,好久了没解决这个问题,详细解答下吧,指导指导

  •   // Register the ZCL GeneralCluster Library callback functions 用来注册通用簇命令回调

     zclGeneral_RegisterCmdCallbacks(SAMPLELIGHT_ENDPOINT, &zclSampleLight_CmdCallbacks);

     而 

    /*********************************************************************
    * @fn zclClosures_RegisterCmdCallbacks
    *
    * @brief Register an applications command callbacks 对回调进行注册 
    *
    * @param endpoint - application's endpoint
    * @param callbacks - pointer to the callback record.
    *
    * @return ZMemError if not able to allocate
    */
    ZStatus_t zclClosures_RegisterCmdCallbacks( uint8 endpoint, zclClosures_AppCallbacks_t *callbacks )


  • 那么要控制窗帘的话就应该用zclClosures_RegisterCmdCallbacks注册回调函数吧?

    协调器要发送窗帘的控制命令,比如开、关,需要在协调器端加入属性表吗?我的理解是不需要,只需要知道窗帘节点的地址就可以了吧

    对窗帘开关的控制是操作窗帘的哪个属性,在zigbee Cluster Library里面没看明白

  • 控制有专门的控制命令,接收端处理这个命令,