ENABLE_TEXT_COMMAND¶
Flag to enable human-readable text command protocol.
Controls whether the serial protocol uses human-readable text commands or binary commands. Only one protocol is compiled per build; they cannot coexist.
v2 (Always Enabled)¶
In v2, the text command protocol is a standard feature — always enabled, no flag required.
Available commands include GET_STATUS, GET_UPTIME, SET_POLL_COUNT, SET_DEADTIME, and others. See Commands Reference for the full list.
v1 (Configurable)¶
In v1, the text command protocol is opt-in via ENABLE_TEXT_COMMAND.
Default¶
- v1: Disabled by default (
ENABLE_TEXT_COMMAND=0, binary protocol)
Options¶
ENABLE_TEXT_COMMAND=1: Enable text commands (development mode)ENABLE_TEXT_COMMAND=0: Use binary protocol (production default)
Override with platformio.override.ini¶
[env:esp32dev-v1]
build_flags =
-D ENABLE_TEXT_COMMAND=1
History¶
- v1.2.0 — Initial implementation as
ENABLE_TEXT_PROTOCOL - v1.9.7 — Renamed to
ENABLE_TEXT_COMMAND - v2.0.0 — Consolidated with
ENABLE_DEVICE_RESPONSE, promoted to always-enabled standard feature