Skip to content

fix(mqtt): persist position updates for existing nodes#455

Merged
SimmerV merged 1 commit intoMeshAddicts:developfrom
SimmerV:develop
May 1, 2026
Merged

fix(mqtt): persist position updates for existing nodes#455
SimmerV merged 1 commit intoMeshAddicts:developfrom
SimmerV:develop

Conversation

@SimmerV
Copy link
Copy Markdown
Collaborator

@SimmerV SimmerV commented May 1, 2026

Summary

  • handle_position only called update_node() in the new-node branch; existing nodes mutated the in-memory dict and skipped persistence entirely.
  • Effect: position-only beacons from known nodes never refreshed last_seen/active, never re-geocoded, and never wrote through to Postgres — in-memory state drifted from PG and reset on restart.
  • Restructured to match handle_nodeinfo/handle_telemetry: branch picks the node ref, fields are mutated, single update_node(id, node) at the end.

@SimmerV SimmerV self-assigned this May 1, 2026
@SimmerV SimmerV added the bug Something isn't working label May 1, 2026
@SimmerV SimmerV added this to meshinfo May 1, 2026
@github-project-automation github-project-automation Bot moved this to Backlog in meshinfo May 1, 2026
@SimmerV SimmerV merged commit df0eab6 into MeshAddicts:develop May 1, 2026
4 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in meshinfo May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant