Logging¶
RX LOG · START · STOP · ERASE · SHOW
A node can write received packets to a file. On the repeater that is
/packet_log (MyMesh.h r.81). Four commands switch this on and off, erase the
file and show it.
[!NOTE] Source. This page was verified against the firmware itself:
MeshCorev1.16.0, commit03b6ef4, 28 July 2026 — filessrc/helpers/CommonCLI.cpp,examples/simple_repeater/MyMesh.cpp,examples/simple_repeater/MyMesh.h, and the officialdocs/cli_commands.md. Line numbers refer to this commit and can be reproduced withtools/cli-commands.py.
Overview¶
The markers in the Role column are explained in the CLI reference. An empty cell means: works on repeater, room server and sensor.
| Command | Role | Default | Serial only | Source |
|---|---|---|---|---|
log start |
— | CommonCLI.cpp r.458 |
||
log stop |
— | CommonCLI.cpp r.461 |
||
log erase |
— | CommonCLI.cpp r.464 |
||
log |
— | yes | CommonCLI.cpp r.467 |
Commands¶
log start¶
Starts logging. The reply starts with three spaces.
Example:
log start
-> logging on
log stop¶
Stops logging.
Example:
log stop
-> logging off
log erase¶
Erases the log file.
Example:
log erase
-> log erased
log¶
Writes the log file to the serial console (MyMesh.cpp r.1042) and ends with
EOF.
Example:
log
-> EOF
With an empty log file, EOF is all that appears.
Sources¶
- MeshCore firmware —
src/helpers/CommonCLI.cpp - MeshCore firmware —
examples/simple_repeater/MyMesh.cpp - MeshCore firmware —
examples/simple_repeater/MyMesh.h - MeshCore firmware —
docs/cli_commands.md
Translated from Dutch by Anthropic Claude