예제 #1
0
 // ------------------ Command Callbacks -------------------------
 private void DefineCommands()
 {
     _command.Add(new[]
     {
         "AskUsIfReady",     // Command asking other side to check if we acknowledge
         "YouAreReady"       // Command to send to other side to tell them we received their acknowledgment
     });
 }
예제 #2
0
 // ------------------ Command Callbacks -------------------------
 private void DefineCommands()
 {
     _command.Add(new[]
     {
         "MultiValuePing",               //  Send value
         "MultiValuePong",               //  Receive value
     });
 }
예제 #3
0
 public void DefineCommands()
 {
     _command.Add(new[]
     {
         "Ack",                  // acknowledgment that cmd was received
         "AreYouReady",          // Command asking if other side is ready
         "Err"                   // Reports incorrectly formatted cmd, or cmd not recognized
     });
 }
예제 #4
0
        private static Enumerator DefineCommands()
        {
            var command = new Enumerator();

            // Set up default commands
            command.Add(new[] {
                "CommError",                // Command reports serial port comm error (only works for some comm errors)
                "kComment",                 // Command to sent comment in argument
            });
            return(command);
        }
        // ------------------ Command Callbacks -------------------------
        private void DefineCommands()
        {
            _command.Add(new[]
            {
                "RequestReset",            // Command Request reset
                "RequestResetAcknowledge", // Command to acknowledge reset

                "RequestSeries",           // Command Request to send series in plain text
                "ReceiveSeries",           // Command to send an item in plain text
                "DoneReceiveSeries",       // Command to tell that sending series in plain text is done

                "PrepareSendSeries",       // Command to tell other side to prepare for receiving a series of text float commands
                "SendSeries",              // Command to send a series of text float commands
                "AckSendSeries"            // Command to acknowledge the send series of text float commands
            });
        }
 private static Enumerator DefineCommands()
 {
     var command = new Enumerator();
     // Set up default commands
     command.Add(new[]
         {
             "CommError", // Command reports serial port comm error (only works for some comm errors)
             "kComment", // Command to sent comment in argument
         });
     return command;
 }