Smart-Home am Beispiel der Präsenzerkennung im Raum Projektarbeit Lennart Heimbs, Johannes Krug, Sebastian Dohle und Kevin Holzschuh bei Prof. Oliver Hofmann SS2019
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pub_sub_flow.tex 938B

1234567891011121314151617181920212223242526272829303132
  1. % Tikz File mqtt_pub_sub.tex
  2. \documentclass{standalone}
  3. \usepackage{tikz}
  4. \usepackage{graphicx}
  5. \begin{document}
  6. \begin{tikzpicture}
  7. %\draw[help lines] (-7,-5) grid (7,5);
  8. \pgfmathsetmacro\pub{-4};
  9. \pgfmathsetmacro\bro{0};
  10. \pgfmathsetmacro\sub{4};
  11. \pgfmathsetmacro\y{4};
  12. \draw[ultra thick] (\pub,\y/2) -- (\pub,\y/-2);
  13. \draw[ultra thick] (\bro,\y/2) -- (\bro,\y/-2);
  14. \draw[ultra thick] (\sub,\y/2) -- (\sub,\y/-2);
  15. \draw[ultra thick, ->] (\sub,1) -- (\bro, 1);
  16. \draw[ultra thick, <-] (\sub,-1) -- (\bro, -1);
  17. \draw[ultra thick, ->] (\pub,0) -- (\bro, 0);
  18. \node at (\pub, \y/2+0.2) {Publisher};
  19. \node at (\bro, \y/2+0.2) {Broker};
  20. \node at (\sub, \y/2+0.2) {Subscriber};
  21. \node at (\sub/2, 1.2) {Subscribe (topic)};
  22. \node at (\pub/2, 0.2) {Publish (topic, info)};
  23. \node at (\sub/2, -0.8) {Publish (topic, info)};
  24. \end{tikzpicture}
  25. \end{document}