I am in final stage of pre-production code and would like the associated indicator LED to go to OFF
when the coordinator is lost or powered down. I can detect it joining ..
The following works for turning on the association status router LED but when I disconnect the
power from the coordinator it does not turn off the LED. Obviously I need to do this differently.
This runs inside the while loop of a supervisory task
while(1) { if (ZB_JOINED())
{ zb_status_led_on();
}
else zb_status_led_off();
vTaskDelay(pdMS_TO_TICKS(5000);
// Other code here
}
Can someone tell me a reliable method to detect that the coordinator is no longer
communication or powered off ?
Regards
Rob