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

Let StoreForward server send history to phoneAPI #4282

Merged
merged 6 commits into from
Jul 13, 2024
Merged

Conversation

GUVWAF
Copy link
Member

@GUVWAF GUVWAF commented Jul 13, 2024

This allows a node configured as StoreForward server to use its PSRAM for an extended text message history (max. ~11,000) for sending to a connected client app. When connecting to the server, you automatically get the packets you missed since the last connection. Text messages will not be placed in the toPhoneQueue anymore to avoid duplicates and have more room for other packets.

It ended up being quite a redesign of the StoreForwardModule to remove the packetHistoryTXQueue which could become quite large and was actually just a filtered duplicate. Instead, we just loop through the packetHistory itself.

I also automatically set the new is_server configuration to true for nodes that were ROUTER_CLIENT and had the StoreForwardModule enabled, because that was the previous behavior. If that's not desired I can remove it.

@thebentern
Copy link
Contributor

Super cool!

@garthvh
Copy link
Member

garthvh commented Jul 13, 2024

Can we make it not function on the default key?

@GUVWAF
Copy link
Member Author

GUVWAF commented Jul 13, 2024

Okay, I can add that restriction for the request over LoRa. Would need to be added to the docs as well then.

@GUVWAF
Copy link
Member Author

GUVWAF commented Jul 13, 2024

Latest commit adds the restriction.

@thebentern thebentern added the requires-docs Documentation must be updated label Jul 13, 2024
@thebentern
Copy link
Contributor

Looks good to me

@thebentern thebentern merged commit 9e4ce86 into master Jul 13, 2024
95 checks passed
@thebentern thebentern deleted the SFphoneAPI branch July 13, 2024 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires-docs Documentation must be updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants