Datasheet

One thing to note in Python byte strings aren't exactly like text strings and you might not be able to do all the text
processing (like find, replace, etc.) as you expect. However you can convert a byte string into text by assuming a
specific text encoding like ASCII. For example to receive a packet and convert the contents to an ASCII text string you
can run code like:
Notice this code first receives a packet, then checks if one was actually found (the packet is not None check--if no
packet is received a value of None is returned), and then converts the packet data to a string assuming an ASCII text
encoding.
Beyond RX & TX
Beyond basic sending and receiving there are a few properties of the RFM69 class you might want to interact with:
encryption_key - This is an optional 16 byte string that defines the AES encryption key used by the radio for
sending and receiving packets. Both the sending and receiving code must have the exact same encryption key
set or they'll be unable to see each other's packets! See the simpletest.py example (https://adafru.it/Bl3) below
for an example of setting the encryption_key to match the default key from RadioHead library raw examples. By
default the RFM69 class assumes no encryption key is set, and you can set this property to the value None to
disable encryption.
rssi - The received signal strength indicator is a property you can read to see the strength of the radio signal
being received. This is updated when packets are received and returns a value in decibels (typically negative,
so the
smaller
the number and closer to 0, the higher the strength / better the signal).
packet = rfm69.receive() # Wait for a packet to be received (up to 0.5 seconds)
if packet is not None:
packet_text = str(packet, 'ascii')
print('Received: {0}'.format(packet_text))
© Adafruit Industries
https://learn.adafruit.com/adafruit-rfm69hcw-and-rfm96-rfm95-rfm98-lora-packet-padio-
breakouts
Page 45 of 70