mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-04-20 22:13:49 +00:00
G6: N02+R04 — add CONTACTS_FULL and GET_STATS enum entries
Why: PacketType was missing CONTACTS_FULL (0x90), emitted by MyMesh::onContactsFull(). CommandType was missing GET_STATS (56), used by get_stats_core/radio/packets but referenced only as literal b"\\x38". Adding both enum entries prepares for handler and wrapper implementations in subsequent commits. Refs: Forensics report findings N02, R04
This commit is contained in:
parent
fbf84cbdac
commit
df388e494e
1 changed files with 4 additions and 0 deletions
|
|
@ -71,6 +71,7 @@ class CommandType(Enum):
|
|||
SET_AUTOADD_CONFIG = 58
|
||||
GET_AUTOADD_CONFIG = 59
|
||||
GET_ALLOWED_REPEAT_FREQ = 60
|
||||
GET_STATS = 56 # R04: CMD_GET_STATS — used by get_stats_core/radio/packets
|
||||
SET_PATH_HASH_MODE = 61
|
||||
|
||||
# Packet prefixes for the protocol
|
||||
|
|
@ -120,3 +121,6 @@ class PacketType(Enum):
|
|||
PATH_DISCOVERY_RESPONSE = 0x8D
|
||||
CONTROL_DATA = 0x8E
|
||||
CONTACT_DELETED = 0x8F
|
||||
CONTACTS_FULL = 0x90 # N02: MyMesh::onContactsFull() — 1-byte push, no payload
|
||||
# Note: 0x90 == ControlType.NODE_DISCOVER_RESP in a different namespace.
|
||||
# Not a literal conflict (PacketType vs ControlType), but a maintenance hazard.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue