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.

the question of -DRFD_RCVC_ALWAYS_ON?

Hi  everyone!

      i have a question of the -DRFD_RCVC_ALWAYS_ON item as below 

      I am adding  a LED  showing in  the ZDO_STATE_CHANGE:

      when lose network  blink the LED and when join the network turn off the LED 

         case ZDO_STATE_CHANGE:
           zclSampleLight_NwkState = (devStates_t)(MSGpkt->hdr.status);

          // now on the network
          if ( (zclSampleLight_NwkState == DEV_ZB_COORD) ||
               (zclSampleLight_NwkState == DEV_ROUTER)   ||
               (zclSampleLight_NwkState == DEV_END_DEVICE) )
          {
            #ifdef LEDShow 
              HalLedSet ( HAL_LED_1, HAL_LED_MODE_OFF );
            #endif
          }
          else
          {
            #ifdef LEDShow 
              HalLedBlink ( HAL_LED_1, 2, 50, 100);
            #endif
          }
          break;

    when -DRFD_RCVC_ALWAYS_ON=TRUE ,the LED blinking was normal (right) at the first time join  the network

    but when the ZC power off ,network was disappear~~~

    The ZED could not  notice it ,and have not blinking the LED

     anyway,if  -DRFD_RCVC_ALWAYS_ON=FALSE ,the LED will be always OK  nomatter  when the network disappear。