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.

How to read an acknowledgement response

Hi Greetings,

 

How to read an acknowledgement response of a  

zb_SendDataRequest( 0xFFFE, SENSOR_REPORT_CMD_ID, 9, pData, 0, AF_ACK_REQUEST, 0 );

which is used while sending a data report from the sensor node in simple_app_sensor program.

or

i need to atleast send a hello.msg to coordinator and should receive the acknowledgement for that from the coordinator.. how to attain that.

Regards

Siva V Girish

  • 1. You need to register AF_ACK_REQUEST using zcl_registerClusterOptionList API in your zclXXX_init().
    2. Send ZCL command with AF_ACK_REQUEST.
    3. You will receive AF_DATA_CONFIRM_CMD in SYS_EVENT_MSG.

    I never use simple API like zb_SendDataRequest to send message. Maybe you can try to skip first step and see if you can get AF_DATA_CONFIRM_CMD in SYS_EVENT_MSG anyway.