docs: sync README / MQTT / TWIN / TESTS with v1.3.3
- README /status example adds twin{...}, trunks[X].nodes and muted;
node-list bullet now mentions twin partner as well as trunk peers.
- docs/MQTT.md documents the nodes/local + nodes/<peer_id> topics
(retained) that were already being published but absent from the
docs; the QoS/retain table is extended accordingly.
- docs/TWIN_PROTOCOL.md status line bumped to v1.3.x+twin2 and test
count updated (8 -> 11) to include the partner-roster test.
- tests/TESTS.md bumps the trunk suite (31 -> 32) and twin suite
(10 -> 11) counts and adds entries for the two new roster tests.
This commit is contained in:
1 parent
69c993ad77
commit
bd31369e5e
4 files changed
+71
-12
No files matched your search
@@ -130,6 +130,36 @@ Down payload:
|
||||
{}
|
||||
```
|
||||
|
||||
### Node lists
|
||||
|
||||
Published when the local node roster changes (debounced 500 ms after
|
||||
client login / logout / TG change) and when a roster arrives from a
|
||||
remote peer.
|
||||
|
||||
```
|
||||
{TOPIC_PREFIX}/nodes/local # this reflector's connected clients
|
||||
{TOPIC_PREFIX}/nodes/<peer_id> # roster mirrored from a trunk peer
|
||||
# or [TWIN] partner
|
||||
```
|
||||
|
||||
Payload:
|
||||
```json
|
||||
{
|
||||
"timestamp": 1712345678,
|
||||
"nodes": [
|
||||
{"callsign": "ON4ABC", "tg": 2620, "qth_name": "Brussels",
|
||||
"lat": 50.85, "lon": 4.35},
|
||||
{"callsign": "IK1XYZ", "tg": 2221}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
`lat`, `lon`, and `qth_name` are omitted when the node has not supplied
|
||||
them. For trunk peers `<peer_id>` comes from the peer's `PEER_ID` (or
|
||||
section name as fallback); for `[TWIN]` partners the id is `TWIN`.
|
||||
Both topics are published with **retain** enabled so late-joining
|
||||
subscribers see the last-known roster immediately.
|
||||
|
||||
### Periodic full status
|
||||
|
||||
Published at the configured `STATUS_INTERVAL` (default every 1 second). The
|
||||
@@ -153,6 +183,8 @@ subscribers immediately receive the last known state.
|
||||
| `client/.../disconnected` | 0 | No |
|
||||
| `client/.../rx` | 0 | No |
|
||||
| `trunk/...` | 0 | No |
|
||||
| `nodes/local` | 0 | **Yes** |
|
||||
| `nodes/<peer_id>` | 0 | **Yes** |
|
||||
| `status` | 0 | **Yes** |
|
||||
|
||||
QoS 0 (fire-and-forget) is used throughout. Event messages are ephemeral — a
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
# GeuReflector — Twin (HA-Pair) Protocol
|
||||
|
||||
> **Status:** Implemented in v1.3.x+twin1. See §Implementation for
|
||||
> **Status:** Implemented in v1.3.x+twin2. See §Implementation for
|
||||
> what shipped and `tests/test_twin.py` for integration test coverage
|
||||
> (8 tests including an end-to-end V2-client audio-mirror path).
|
||||
> (11 tests including end-to-end V2-client audio mirroring and
|
||||
> partner-roster propagation into `/status.twin.nodes`).
|
||||
|
||||
## Motivation
|
||||
|
||||
|
||||
Reference in new issue
Block a user