aboutsummaryrefslogtreecommitdiff
path: root/Mussel/examples/voting_from_EddystoneTLM/voting_from_EddystoneTLM.puml
blob: caafc05e97484006b3d96bc14270fbe60edee6a1 (plain)
  1. @startuml
  2. 'start
  3. :instantiate mussel object;
  4. :instantiate bluetooth object;
  5. group init
  6. :setup mussel voting;
  7. :setup bluetooth scanner;
  8. end group
  9. split
  10. while (each beacon detected)
  11. group "bluetooth callback" {
  12. :collect beacon data;
  13. end group
  14. endwhile
  15. -[hidden]->
  16. kill
  17. split again
  18. while (each 500ms)
  19. group loop {
  20. :allign beacon data as ballots;
  21. :qualify ballots for a vote;
  22. :conclude vote result;
  23. :act on vote result;
  24. end group
  25. endwhile
  26. -[hidden]->
  27. kill
  28. @enduml