Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Implement "reliable datagram" #24
Implemented compatibility with the RadioHead library "Reliable DataGram" mode. see #20.
It has been difficult to make this work reliably. Packets will still be missed occasionally but now they will be reported. There are attributes taht can be "tweaked" to help
rfm69.ack_delay -- set a delay before the ACK packet is sent - this is necessary when the receive unit an MCU communication to a Raspberry Pi . The MCU can send it's ACK packet before the Raspberry Pi has resumed "listening". The default setting is "None" but setting it to .1 seconds may be necessary. The Arduino RadioHead library does not allow for this "ack_delay" and it it may be difficult to get this to work, especially with a Raspberry Pi.
rfm69.retries -- set the number of ack retries
All of the existing examples will still execute without change.
There are "breaking changes" fo anyone that had been setting the RadioHead headers directly.
There are examples for using this mode in rfm69_node1_ack.py and rfm69_node2_ack.py
other new examples