I'm currently trying to create a small diagram with arrows between two nodes and text next to the arrows.
Currently, my diagram looks like this:
But, I would like to have the text at the left of the arrow going from Raspberry Pi to SIM7600E-H 4G HAT.
MWE:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows}
\usetikzlibrary{calc}
\tikzstyle{process} = [rectangle, minimum width=6cm, minimum height=1cm, text centered, text width=6cm, draw=black, fill=orange!30]
\tikzstyle{arrow} = [thick,->,>=stealth]
\begin{document}
\begin{figure}
\centering
\begin{tikzpicture}[node distance=4cm]
\node (rpi) [process] {Raspberry Pi};
\node (sim) [process, below of=rpi] {SIM7600E-H 4G HAT};
\node (command) at ($(rpi) !0.5! (sim)$) {Send AT command};
\draw [arrow] (rpi.west) -- node[anchor=south] {} +(-1.5, 0) |- (sim);
\draw [arrow] (sim.east) -- node[anchor=south] {} +(1.5, 0) |- (rpi);
\end{tikzpicture}
\end{figure}
\end{document}