示例#1
0
 public serialCommand(SerialCommunication instance)
 {
     this.instance      = instance;
     isCommandSent      = false;
     responseTimeout    = instance.responseTimeout;
     waitBeforeCopy     = null;
     waitAfterCopy      = null;
     waitAfterMSCopy    = null;
     waitAfterBytesCopy = null;
     onSuccess          = () => {
         // System.Diagnostics.Debugger.Log(0, null, "Success:" + instance.response.text);
     };
     onFail             = () => {
         // System.Diagnostics.Debugger.Log(0, null, "Fail:" + instance.response.text);
     };
     onComplete         = () => {
         // System.Diagnostics.Debugger.Log(0, null, "Complete:" + instance.response.text);
     };
 }
示例#2
0
 public serialResponse(SerialCommunication instance)
 {
     this.instance = instance;
     clear();
 }