Пример #1
0
        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));
        }
Пример #2
0
 public void PostWithoutId(string command)
 {
     SerialConnector.Post(Encoding.ASCII.GetBytes(command + "\n"));
 }