File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 27
27
# Note that the radio is configured in LoRa mode so you can't control sync
28
28
# word, encryption, frequency deviation, or other settings!
29
29
30
+ # You can however adjust the transmit power (in dB). The default is 13 dB but
31
+ # high power radios like the RFM95 can go up to 23 dB:
32
+ rfm9x .tx_power = 23
33
+
30
34
# Send a packet. Note you can only send a packet up to 252 bytes in length.
31
35
# This is a limitation of the radio packet size, so if you need to send larger
32
36
# amounts of data you will need to break it into smaller send calls. Each send
56
60
# sending side is sending ASCII data before you try to decode!
57
61
packet_text = str (packet , 'ascii' )
58
62
print ('Received (ASCII): {0}' .format (packet_text ))
63
+ # Also read the RSSI (signal strength) of the last received message and
64
+ # print it.
65
+ rssi = rfm9x .rssi
66
+ print ('Received signal strength: {0} dB' .format (rssi ))
You can’t perform that action at this time.
0 commit comments