Repository navigation
Stop sending APP_START from the single-setting calls - #130
Merged
fdlamotte merged 1 commit intoNov 22, 2026
Merged
Conversation
set_telemetry_mode_base/_loc/_env, set_manual_add_contacts, set_advert_loc_policy and set_multi_acks each sent APP_START to read the current settings before writing them back. The firmware's APP_START also stops a contact list being sent (_iter_started = false), so a get_contacts in progress, this client's or another app's, never got its END_OF_CONTACTS. They now take the other settings from the SELF_INFO MeshCore already holds from connecting (passed to the command handler with set_self_info_getter), and send APP_START only when none is held. A successful set_other_params(_from_infos) updates the held values, so the next call doesn't put an old one back. Part of meshcore-dev#119 (B3).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was wrong (#119, B3)
set_telemetry_mode_base/_loc/_env,set_manual_add_contacts,set_advert_loc_policyandset_multi_ackseach sent APP_START to read the current settings before writing them back.MyMesh.cpp:1083,_iter_started = false). Aget_contactsin progress, this client's or another app's on the same radio, then never gets its END_OF_CONTACTS.What changed
MeshCorealready holds from connecting. It's passed to the command handler with a newset_self_info_getter, alongsideset_contact_getter_by_prefix.CommandHandlerused on its own, or before the first SELF_INFO.set_other_paramsorset_other_params_from_infosupdates the held values, so the next single-setting call doesn't put an old value back.Verified
tests/unit/test_settings_without_appstart.py. They fail on currentmain.set_manual_add_contacts(False)straight after. On currentmain:No CONTACT frame and no END_OF_CONTACTS followed. On this branch:
Part of #119.