Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lora acknowledgement zero response fix #434

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jgOhYeah
Copy link

@jgOhYeah jgOhYeah commented Jan 7, 2025

Hi @gioblu,
I've been using a small network of devices using PJON Through LoRa for the past few years and have started work on a remote gate monitor / doorbell that requires acknowledgement. This pull request fixes a bug where response packets were all zeros and adds an optional delay between receiving a packet and acknowledging it due to the extremely slow microcontrollers on the other end of the system.

Responses being all zeros

The call to prepare_response on line 175 passed the address of the end of the frame rather than the start of the frame.

Response delay

This is a feature that doesn't have to be merged, but I found to be required by my system that is not using the official library on the other end of the connection. The delay is disabled by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant