Skip to content

Text message rate limiting should return routing error instead#7365

Merged
thebentern merged 5 commits into
masterfrom
routing-error
Jul 21, 2025
Merged

Text message rate limiting should return routing error instead#7365
thebentern merged 5 commits into
masterfrom
routing-error

Conversation

@thebentern

Copy link
Copy Markdown
Contributor

Hold till next protobuf rev

@thebentern thebentern requested a review from Copilot July 20, 2025 23:57
@thebentern thebentern marked this pull request as ready for review July 20, 2025 23:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request changes the handling of text message rate limiting to return a routing error response instead of sending a notification. The change improves the API's error handling by providing structured error responses rather than user-facing notifications.

Key changes:

  • Replace notification-based rate limit feedback with routing error responses
  • Add new method to send routing error responses to the phone
  • Maintain backward compatibility by commenting out the old notification approach

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/mesh/PhoneAPI.cpp Updates rate limiting handler to use routing error response instead of notification
src/mesh/MeshService.h Adds declaration for new sendRoutingErrorResponse method
src/mesh/MeshService.cpp Implements sendRoutingErrorResponse method with proper error handling

Comment thread src/mesh/MeshService.cpp
Comment thread src/mesh/MeshService.cpp
@thebentern thebentern added the enhancement New feature or request label Jul 21, 2025
@thebentern thebentern merged commit 8aef3c4 into master Jul 21, 2025
45 of 48 checks passed
@caveman99 caveman99 deleted the routing-error branch July 21, 2025 11:02
oscgonfer pushed a commit to fablabbcn/smartcitizen-meshtastic that referenced this pull request Jul 22, 2025
…astic#7365)

* Text message rate limiting should return routing error instead

* Proper rooting

* Update PhoneAPI.cpp

* Update PhoneAPI.cpp
oscgonfer pushed a commit to fablabbcn/smartcitizen-meshtastic that referenced this pull request Jul 23, 2025
…astic#7365)

* Text message rate limiting should return routing error instead

* Proper rooting

* Update PhoneAPI.cpp

* Update PhoneAPI.cpp
jeek pushed a commit to jeek/Meshtastic-Exploiteers-Hacker-Pager that referenced this pull request Jun 30, 2026
…astic#7365)

* Text message rate limiting should return routing error instead

* Proper rooting

* Update PhoneAPI.cpp

* Update PhoneAPI.cpp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants