Overview of Py-CmdMessenger samples
masterThe Python samples demonstrate the host (PC) side of the CmdMessenger protocol. Each sample is designed to pair with a specific Arduino sketch found in the examples/ directory of the repository. They cover various communication patterns including simple receiving, two-way command/status exchange, multi-argument requests, binary data handling, and real-time data logging.
| Python sample | Arduino sketch | Notes |
|---|---|---|
| [receive/](receive/) | `examples/Receive/` | Send only — toggles an LED |
| [send_and_receive/](send_and_receive/) | `examples/SendAndReceive/` | Send `SetLed`, receive `Status` |
| [send_and_receive_arguments/](send_and_receive_arguments/) | `examples/SendAndReceiveArguments/` | Multi-arg ack request/reply |
| [send_and_receive_binary_arguments/](send_and_receive_binary_arguments/) | `examples/SendAndReceiveBinaryArguments/` | Binary encoded floats |
| [data_logging/](data_logging/) | `examples/DataLogging/` | Real-time chart via web UI + console variant |
| [arduino_controller/](arduino_controller/) | `examples/ArduinoController/` | Slider + toggle via web UI |
| [simple_watchdog/](simple_watchdog/) | `examples/SimpleWatchdog/` | `SerialConnectionManager` + watchdog |
| [temperature_control/](temperature_control/) | `examples/TemperatureControl/` | Full: chart + slider + ConnectionManager |