I would like to capture on the router when an end device connects (I have roaming end devices and need to know when one joins a particular router). I tried the following on my router:
static void router_process_zdo_msg( zdoIncomingMsg_t *inMsg )
{
switch ( inMsg->clusterID )
{
case End_Device_Timeout_req:
{
//An end device is connecting to us. Let's chirp a little
//to indicate we were just connected to.
red_led_blink(3,50,100);
}
case End_Device_Bind_req:
{
//An end device is connecting to us. Let's chirp a little
//to indicate we were just connected to.
green_led_blink(3,50,100);
break;
}
}
}
Neither of these trigger when an end device connects. Also, I need to be able to distinguish between an end device and another router.
thank you