Datasheet

Remember you can only send a message up to 252 bytes in length at a time! Attempting to send a message longer
than 252 bytes will fail with an exception error. If you need to send a longer message it will have to be broken up into
multiple send calls and reconstructed on the receiving side.
If you have another RFM9x on the same frequency waiting to receive messages (like another CircuitPython module
running receive code below) you should see it receive the message.
You can even have an Arduino running the RadioHead library's RFM95 client example see the message that was sent:
To receive a message simply call the receive function. This function will wait for half a second for any packet to be
received. If a packet is found it will be returned as a byte string (remember packets are at most 252 bytes long), or if
no packet was found a result of None is returned.
You can increase the amount of time the module waits for a packet to be received by specifying the time in seconds
as a parameter to the receive call:
Notice this waits longer at the REPL for a packet to be received before returning. If you have another RFM9x setup try
having it send a message while the other is waiting to receive it. You should see a byte string returned. You can also
have an Arduino running the RadioHead library's RFM95 client example send messages that are received by your
code:
rfm9x.receive()
rfm9x.receive(timeout_s=5.0) # Wait 5 seconds instead of 0.5 seconds.
© Adafruit Industries
https://learn.adafruit.com/adafruit-rfm69hcw-and-rfm96-rfm95-rfm98-lora-packet-padio-
breakouts
Page 53 of 70