private void PostImpl(int id, string command) { string commandWithId = $"#{id} {command}"; byte[] cmd = Encoding.ASCII.GetBytes(commandWithId + "\n"); SerialConnector.Post(cmd); SendRawData?.Invoke(this, new UArmRawMessageEventArgs(commandWithId)); }
public void PostWithoutId(string command) { SerialConnector.Post(Encoding.ASCII.GetBytes(command + "\n")); }