\gls{SDS} specification and \gls{Task} specifications to the device. A
\gls{Task} record is created with the identifier $-1$ to denote a \gls{Task}
not yet acknowledged. Finally the device itself is updated with the new state
-and with the new \gls{Task}. After waiting for the acknowledgement the device
+and with the new \gls{Task}. After waiting for the acknowledgement the device
is updated again and the \gls{Task} returns.
\begin{lstlisting}[label={lst:sendtask},%