Skip to content

Increase default position broadcast intervals and enforce minimums for the public default channels#9236

Merged
thebentern merged 1 commit into
developfrom
position-intervals-increase
Jan 10, 2026
Merged

Increase default position broadcast intervals and enforce minimums for the public default channels#9236
thebentern merged 1 commit into
developfrom
position-intervals-increase

Conversation

@thebentern

Copy link
Copy Markdown
Contributor

This pull request introduces new minimum interval constants for position broadcasts and ensures that these minimums are enforced when broadcasting positions over default channels. It also updates the configuration logic to use these new constants, improving consistency and preventing excessive position broadcasts.

Position broadcast interval enforcement:

  • Added new constants in Default.h for minimum broadcast intervals: min_default_broadcast_interval_secs (1 hour) and min_default_broadcast_smart_minimum_interval_secs (5 minutes), and updated the default values for position broadcast intervals.
  • Updated NodeDB::NodeDB() to enforce the new minimum broadcast intervals when positions are sent over default channels, ensuring position broadcasts are not too frequent.

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 introduces minimum broadcast interval enforcement for position broadcasts when sent over public default channels, addressing concerns about excessive position broadcasts on the shared mesh network infrastructure. The changes increase default position broadcast intervals and add logic to enforce these minimums.

Key changes:

  • Added minimum broadcast interval constants (1 hour for regular broadcasts, 5 minutes for smart broadcasts)
  • Updated default position broadcast interval from 15 minutes to 60 minutes for non-router devices
  • Implemented enforcement logic in NodeDB constructor to coerce position intervals when using default channels

Reviewed changes

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

File Description
src/mesh/Default.h Adds new minimum interval constants and increases default broadcast interval from 15 to 60 minutes
src/mesh/NodeDB.cpp Implements position broadcast interval enforcement for default channels, similar to existing telemetry enforcement
src/modules/PositionModule.h Updates hardcoded default value (30 seconds) to use new constant (5 minutes)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/mesh/NodeDB.cpp
Comment thread src/mesh/Default.h

@jp-bennett jp-bennett left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Seems pretty reasonable. Doesn't break anything on private channels.

@fifieldt fifieldt added the enhancement New feature or request label Jan 9, 2026
@thebentern thebentern merged commit 9e96b0a into develop Jan 10, 2026
84 of 85 checks passed
@caveman99 caveman99 deleted the position-intervals-increase branch February 12, 2026 15:11
jeek pushed a commit to jeek/Meshtastic-Exploiteers-Hacker-Pager that referenced this pull request Jun 30, 2026
…-increase

Increase default position broadcast intervals and enforce minimums for the public default channels
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.

6 participants