09 Jan

I chose pins 7 and 8 because I will use them in the examples.

On Arduino UNO boards SPI pins are connected with some digital pins.

If you need confirmation that the receiver received data, the method “radio.write” returns a “bool” value.

If it returns “true” , the data reached the receiver.

While using modem you most remember that these digital pins won’t be available.

It makes the program will sent “Hello World” every second to the receiver.

The address is necessary if you have a few modems in the network, thanks to the address, you can choose a particular modem to which you are sending the data. It shows how many times the modem will retry to the send data in case of not receiving by another modem. So, if the recipient does not receive data, modem will try to send them every 3.75 milliseconds. So in our example, modem will try to send 15 times before it will stop and finds that the receiver is out of range, or is turned off.

In the “setup” function we call the method “radio.begin ();” . The first argument sets how often modem will retry. The method of “Writing Pipe (rx Addr);” sets the address of the receiver to which the program will send data.

First argument is an indication of the variable that stores the data to send.

That’s why we used “&” before the variable name, so we can make an indicator from this variable.