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.

zigbee协调器如何获取设备的mac地址?

      我在协调器的 zclSampleLight_event_loop函数下获取mac地址,获取的同一个设备的mac地址会变化而且不正确,所以我觉得这样获取mac地址有问题!

case ZCL_INCOMING_MSG:
        {
          zclIncomingMsg_t *data;
          data = (zclIncomingMsg_t *)MSGpkt;
          for(int i = 0; i < 8; i++)
          {
            mac[i] = data->srcAddr.addr.extAddr[7-i];
          }
          // Incoming ZCL Foundation command/response messages
          zclSampleLight_ProcessIncomingMsg( (zclIncomingMsg_t *)MSGpkt );
        }

        1) 请问下协调器在获取数据的时候是不是有接口来获取设备的mac地址?

        2)或者可以在设备发送mac地址的接口,然后这边直接获取?

       3)还是有其他的请求方式的获取mac地址?