Hi!
I'm looking at the example "main_manyEDs_autoack.c" and I have doubts about this code
- In "static void linkTo()" A SMPL_Ping is done if there is no ACK after a number of retries. Why? The SMPL_Ping only pings the device the connection is on, right? The device sLinkID1 is linked tomay have restarted and don't have the connection any more. So just because SMPL_Ping succeded there is no guarantee that the SMPL_SendOpt will succeed even if the frames are transmitted ok? I thnik the Join and Link has to be run again here instead of the ping. Anybody agree?
- Why don't we want to do a scan (ping) just because a CCA failed? I don't get that. The air is busy and we didn't get the ACK after several retries. Why don't do the scan, the channel might have changed just because the current channel is busy.
Regards Henrik