room_server: add room.post command for server-originated posts - #2688
Merged
ripplebiz merged 2 commits intoJul 30, 2026
Conversation
Che177
force-pushed
the
feature/room-server-system-posts
branch
from
June 9, 2026 06:25
435e984 to
fd26f7c
Compare
Che177
force-pushed
the
feature/room-server-system-posts
branch
from
July 28, 2026 02:33
440409f to
41b9645
Compare
Che177
force-pushed
the
feature/room-server-system-posts
branch
from
July 28, 2026 02:59
41b9645 to
3a9f19c
Compare
liamcottle
requested changes
Jul 28, 2026
Author
|
Updated in 5a04e06. I removed the dedicated ENABLE_ROOM_POST_DEBUG guards and replaced all room.post Serial logging with the existing MESH_DEBUG_PRINTLN macro. I also verified the Tbeam_SX1262_room_server build both normally and with MESH_DEBUG enabled. Thanks for the review! |
liamcottle
marked this pull request as ready for review
July 29, 2026 13:29
hermes-gadget
added a commit
to gadgethd/MeshCore-MQTT
that referenced
this pull request
Jul 30, 2026
Upstream dev: 449f0b5..db23280 (22 commits) - PR meshcore-dev#2688: room_server system posts (3a9f19c, 5a04e06, db23280) - PR meshcore-dev#3004: preserve UTF-8 advert names (79dc1de, 57ddada) - PR meshcore-dev#3060: fix mesh-debug-active (d7f378b, b797ca1) - PR meshcore-dev#3063: unify IRQ timeout (a5c323c, a3732e1, 79eb7f5, a7426de, 6e39cff) - PR meshcore-dev#3062: fix IRQ clear (20f55a4, 9f73fbf) - PR meshcore-dev#3049: ethernet refactor (5de857f, b4143a4, e672679, 203fd4e, 834ad72, 279ac78) - USB companion flag requirement (e7f2c71) - Bluetooth toggle on UI tiny (dd778e2) Conflicts resolved: - variants/mesh_pocket/platformio.ini: USB companion AUTO_OFF_MILLIS + ENABLE_USB_INTERFACE Clean auto-merge (no conflicts) in all MQTT files — guard pattern held. MQTT additions preserved.
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.
Based on #2686.
Summary
This PR adds support for room-server-originated posts to
simple_room_server.It introduces:
and exposes it through the serial console command:
Motivation
The room server currently stores posts received from clients, but it has no simple API for creating a post using its own identity.
This change provides a reusable path for local room-server code to publish messages without duplicating the existing post storage and notification logic.
Implementation
This PR:
MyMesh::addSystemPost(const char* postData)storePost()methodroom.post <message>serial console commandERR empty messageUsage
From the room server's serial console:
Successful commands return:
Testing
Built successfully with:
Scope
This PR only adds the system-post helper and the
room.postcommand. It does not include GPIO handling, sensor examples, or board-specific configuration.