+\section{Server to Client}
+Messages are delimited by newlines to make processing by line based devices
+more easy.
+\todo{Handshake}
+\begin{table}[ht]
+ \centering
+ \begin{tabular}{ll}
+ \toprule
+ byte & value\\
+ \midrule
+ 1 & \texttt{'t'}\\
+ 2,3 & interval\\
+ 4,5 & length (\texttt{n})\\
+ 6 to n+6 & bytecode\\
+ \bottomrule
+ \end{tabular}
+ \caption{Send a task}
+\end{table}
+
+\begin{table}[ht]
+ \centering
+ \begin{tabular}{ll}
+ \toprule
+ byte & meaning\\
+ \midrule
+ 1 & \texttt{'d'}\\
+ 2,3 & task id\\
+ \bottomrule
+ \end{tabular}
+ \caption{Delete a task}
+\end{table}
+
+\begin{table}[ht]
+ \centering
+ \begin{tabular}{ll}
+ \toprule
+ byte & meaning\\
+ \midrule
+ 1 & \texttt{'s'}\\
+ 2,3 & identifier\\
+ 4,5 & value\\
+ \bottomrule
+ \end{tabular}
+ \caption{Send an SDS specification}
+\end{table}
+
+\begin{table}[ht]
+ \centering
+ \begin{tabular}{ll}
+ \toprule
+ byte & meaning\\
+ \midrule
+ 1 & \texttt{'u'}\\
+ 2,3 & sdsid\\
+ 4,5 & value\\
+ \bottomrule
+ \end{tabular}
+ \caption{SDS update}
+\end{table}
+
+\section{Client to Server}
+\todo{Handshake reply}
+\begin{table}[ht]
+ \centering
+ \begin{tabular}{ll}
+ \toprule
+ byte & value\\
+ \midrule
+ 1 & \texttt{'t'}\\
+ 2,3 & task id\\
+ \bottomrule
+ \end{tabular}
+ \caption{Task acknowledgement}
+\end{table}
+
+\begin{table}[ht]
+ \centering
+ \begin{tabular}{ll}
+ \toprule
+ byte & value\\
+ \midrule
+ 1 & \texttt{'u'}\\
+ 2,3 & SDS id\\
+ 4,5 & value\\
+ \bottomrule
+ \end{tabular}
+ \caption{SDS publish}
+\end{table}
+
+\todo{SDS acknowledgement}