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); }; }
public serialResponse(SerialCommunication instance) { this.instance = instance; clear(); }