Range Test

The Range Test set of examples is a simple tool to measure the range between a coordinator and a router. The Router will send a message and then the Coordinator will respond back with a short message. Also, the Link Quality Indication (LQI) of each received message is displayed to the console.

Start the Coordinator first:

Then, once the Coordinator is up and running, start the Router:

Under the Hood
In the Router example, we did something peculiar: buttonIsr = NULL;

In the HAL file, the ISRs are pointed to a function that doesn't do anything, so that if they are not set to anything in the application then nothing will happen when the ISR fires. In this example we want the button to trigger a restart, so we point the buttonIsr to NULL. When the buttonIsr fires, this will cause an invalid memory access error, restarting the processor.