FreeDATA/documentation/wiki/pages/04.development/06.protocol/default.en.md
2022-01-26 20:58:40 +01:00

27 lines
No EOL
785 B
Markdown

---
title: Protocol
---
!!! Simple test for displaying protocol flow chart. Real protocl is much more complex...
[flow]
starttransmission=>start: Start transmission
transmissionsuccess=>end: End|success
transmissionnosuccess=>end: End|invalid
opendatachannel=>operation: Open datachannel
datachannelopened=>condition: Opened?
nretries=>condition: Retry<=5?
sendframe=>operation: Send frame
waitforack=>subroutine: Wait for ACK
ackreceived=>condition: ACK?
starttransmission->opendatachannel->datachannelopened
datachannelopened(no)->nretries(right)
nretries(yes)->opendatachannel
nretries(no, bottom)->transmissionnosuccess
datachannelopened(yes)->sendframe->waitforack->ackreceived
ackreceived(no, left)->sendframe(left)
ackreceived(yes, bottom)->transmissionsuccess(top)
[/flow]