Datasheet

This demo code shows how you can listen for packets and also check for button presses (or sensor data or whatever
you like) and send them back and forth between the two radios!
Addressed RX and TX Demo
OK so the basic demo is well and good but you have to do a lot of
management
of the connection to make sure
packets were received. Instead of manually sending acknowledgements, you can have the RFM69 and library do it for
you! Thus the Reliable Datagram part of the RadioHead library.
Load up the RadioHead69_AddrDemo_RX and RadioHead69_AddrDemo_TX sketches to each of your boards
This example lets you have many 'client' RFM69's all sending data to one 'server'
Each client can have its own address set, as well as the server address. See this code at the beginning:
For each client, have a unique MY_ADDRESS. Then pick one server that will be address #1
Once you upload the code to a client, you'll see the following in the serial console:
Don't forget to check the frequency set in the example, and that the pinouts match your wiring!!!
// Where to send packets to!
#define DEST_ADDRESS 1
// change addresses for each client board, any number :)
#define MY_ADDRESS 2
© Adafruit Industries
https://learn.adafruit.com/adafruit-rfm69hcw-and-rfm96-rfm95-rfm98-lora-packet-padio-
breakouts
Page 36 of 70