Repository navigation
Feature: Add request helpers for owner info and sensor subscriptions - #132
Merged
fdlamotte merged 1 commit intoNov 22, 2026
Merged
Conversation
The firmware handles three binary request types meshcore had no helper for: - req_owner_info_sync: REQ_TYPE_GET_OWNER_INFO (0x07, simple_repeater at FIRMWARE_VER_LEVEL 2+), the logged-in counterpart of the anon OWNER request: firmware version, name and owner info; - req_subscribe_sync / req_unsubscribe_sync: REQ_TYPE_SUBSCRIBE and REQ_TYPE_UNSUBSCRIBE (0x08, 0x09, simple_sensor). Pushes come back as BINARY_RESPONSE events tagged with the caller's push tag. Part of meshcore-dev#119 (B8).
hamsolodev
marked this pull request as ready for review
November 22, 2026 00:11
Collaborator
|
oh I was about to work on sensor subscription ;) I've read over most of the PRs, think I'll merge them rapidly |
Contributor
Author
|
oh! feel free to ignore and implement as you see fit, I don't want to step on your toes 👍 |
Collaborator
|
nono I'll merge it, as it is a good starting point ... will build things upon it so thanks |
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.
A feature, offered for you to take or leave.
What it's for (#119, B8): the firmware handles three binary request types that meshcore has no helper for. I checked each against the firmware source (companion and server examples at v1.18.0):
0x07,simple_repeater/MyMesh.cpp:51and:372, FIRMWARE_VER_LEVEL ≥ 2). The logged-in counterpart of the anon OWNER request. It answers"<version>\n<name>\n<owner info>".0x08/0x09,simple_sensor/SensorMesh.cpp:61-62and:213-250).MyMesh.cpp,onContactResponse).What changed
BinaryReqTypegetsOWNER_INFO,SUBSCRIBEandUNSUBSCRIBE.req_owner_info_sync,req_subscribe_syncandreq_unsubscribe_syncincommands/binary.py, built on a small shared helper that sends a binary request and waits for its BINARY_RESPONSE.Left out: a keep-alive helper. The issue suggested one, but reading the firmware, it wouldn't do anything useful:
REQ_TYPE_KEEP_ALIVE, and only over a direct route.BaseChatMesh::checkConnections).Verified
tests/unit/test_request_helpers.py; they fail on currentmain.SUBSCRIBE and UNSUBSCRIBE were checked against the sensor source only: I had no sensor to run them against.
Part of #119.