File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 33
33
print ('Bit rate: {0}kbit/s' .format (rfm69 .bitrate / 1000 ))
34
34
print ('Frequency deviation: {0}hz' .format (rfm69 .frequency_deviation ))
35
35
36
- # Send a packet.
36
+ # Send a packet. Note you can only send a packet up to 60 bytes in length.
37
+ # This is a limitation of the radio packet size, so if you need to send larger
38
+ # amounts of data you will need to break it into smaller send calls. Each send
39
+ # call will wait for the previous one to finish before continuing.
37
40
rfm69 .send ('Hello world!\r \n ' )
38
41
print ('Sent hello world message!' )
39
42
40
- # Wait to receive packets.
43
+ # Wait to receive packets. Note that this library can't receive data at a fast
44
+ # rate, in fact it can only receive and process one 60 byte packet at a time.
45
+ # This means you should only use this for low bandwidth scenarios, like sending
46
+ # and receiving a single message at a time.
41
47
print ('Waiting for packets...' )
42
48
while True :
43
49
packet = rfm69 .receive ()
You can’t perform that action at this time.
0 commit comments