Task-Tracker-Systems / Task-Tracker-Device

Sources for a task time recording device.
https://task-tracker-systems.github.io/Task-Tracker-Device/
MIT License
2 stars 0 forks source link

serial interface: add command parser for protocol #82

Closed dhebbeker closed 10 months ago

dhebbeker commented 11 months ago

Purpose

Create a command parser which is capable to interpret the commands from serial interface according to the defined protocol.

Resolves #60

Acceptance criteria

Todos

Changes

dhebbeker commented 10 months ago

Tested also with real device:

 begin program '/home/dhebbeker/pro/time-tracker/src/time-tracker.ino compiled at Nov 30 2023 21:50:08
---- Sent utf8 encoded message: "list\n" ----
this is a list: a, b, c, ...
---- Sent utf8 encoded message: "list\n" ----
this is a list: a, b, c, ...
---- Sent utf8 encoded message: "edit --name \"hello world\"\n" ----
Edit id(0) label('hello world') duration(0)
---- Sent utf8 encoded message: "edit --name \"@²³ß\\\"ä\" --duration 1337\n" ----
Edit id(0) label('@²³ß"ä') duration(1337)

:heavy_check_mark: