Skip to content

Latest commit

 

History

History
59 lines (33 loc) · 1.14 KB

serial-protocol.md

File metadata and controls

59 lines (33 loc) · 1.14 KB

Protocol v0.1.0

Client-Server communication

TDD = Task Tracker Device
App = Desktop Applikacion

  • Server = TTD
  • Client = App

Limitations

  • Strings MUST NOT have line breaks
  • String parameter containing whitespace MUST have double-quotes
  • Numeric parameters MUST be integers
  • Parameters CAN be sent in arbitrary order
  • Strings MUST use ASCII characters only

"welcome message" from server

prints the response of "get protocol version": version info

get protocol version

list tasks

edit task

  • Sending: edit --id <id> [--name "<new name>"] [--duration duration]
  • Receiving: task description

create task

  • Sending: add --id <id> --name "<new name>" [--duration <duration>]
  • Receiving: task description

delete task

  • Sending: delete --id <id>
  • Receiving: task id