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 continue to send temperature by reporting after turning off and turning on the temperature sensor

Other Parts Discussed in Thread: Z-STACK

Hello

I use two SMARTRF05B with the TI  HA application SampleThermostat and SampleTemperatureSensor.

I have configured NV_RESTORE in both applications.

After a pairing it works fine.

In my use I turn off and turn on the temperature sensor.

Immediately after turning on, the temperature is not received by the thermostat. But after a variable period of several minutes it works again.

Why is it not working immediately ?

If I turn off and turn on the Thermostat and the Temperature sensor, it works immediately.

The temperature sensor use a report command to send the temperature:

    zcl_SendReportCmd( SAMPLETEMPERATURESENSOR_ENDPOINT, &zclSampleTemperatureSensor_DstAddr,
                       ZCL_CLUSTER_ID_MS_TEMPERATURE_MEASUREMENT,
                       pReportCmd, ZCL_FRAME_SERVER_CLIENT_DIR, TRUE, zclSampleTemperatureSensorSeqNum++ );

Do I need to store the zclSampleTemperatureSensorSeqNum before to turn off, and restore when turn on ?

Thanks

Eric