Skip to content

Commit b3aa4a3

Browse files
committed
Update comments.
1 parent f1daf61 commit b3aa4a3

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

examples/simpletest.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,17 @@
3333
print('Bit rate: {0}kbit/s'.format(rfm69.bitrate/1000))
3434
print('Frequency deviation: {0}hz'.format(rfm69.frequency_deviation))
3535

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.
3740
rfm69.send('Hello world!\r\n')
3841
print('Sent hello world message!')
3942

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.
4147
print('Waiting for packets...')
4248
while True:
4349
packet = rfm69.receive()

0 commit comments

Comments
 (0)