Add esp_now_messages.proto with EspNowMessage types, encode/decode helpers,
and Makefile targets to regenerate firmware and UART schemas together.
Co-authored-by: Cursor <cursoragent@cursor.com>
Slaves send HEARTBEAT every 1s; the master marks clients inactive after
3s without traffic and reactivates on reconnect. CLIENT_INFO reports
last_ping as milliseconds since the last packet, not uptime.
Co-authored-by: Cursor <cursoragent@cursor.com>
Refactor into version/clients subcommands with shared serial framing
to list registered slaves from the master over UART.
Co-authored-by: Cursor <cursoragent@cursor.com>
Track ESP-NOW slaves in a shared registry and respond to CLIENT_INFO
with protobuf ClientInfoResponse; ESP-NOW path upserts registry entries.
Co-authored-by: Cursor <cursoragent@cursor.com>
Slave responds and logs only on first discover from a given master MAC;
subsequent broadcasts on the same network are silently ignored.
Co-authored-by: Cursor <cursoragent@cursor.com>
Expand main/README with master/slave overview, boot config, protocols,
and build notes; point goTool README at the full system doc.
Co-authored-by: Cursor <cursoragent@cursor.com>
Framed protobuf client for /dev/ttyUSB0 at 921600 baud with generated
uart_messages types matching the device protocol.
Co-authored-by: Cursor <cursoragent@cursor.com>
Use TX=GPIO3 and RX=GPIO2 at 921600 to match the terminal adapter wiring;
log received message id and which handler command is triggered.
Co-authored-by: Cursor <cursoragent@cursor.com>
Centralize command dispatch over a FreeRTOS queue so UART and future
ESP-NOW transports can register handlers; implement the protobuf VERSION
command with framed nanopb responses including build git hash.
Co-authored-by: Cursor <cursoragent@cursor.com>