mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 20:54:55 +00:00
Reset branch HEAD to f74fa35c commit. Removed all TX: and RX: Console.Debug statements and built successfully.
This commit is contained in:
@@ -31,7 +31,7 @@ namespace PepperDash.Essentials.Core
|
|||||||
{
|
{
|
||||||
Communication = comm;
|
Communication = comm;
|
||||||
PortGather = new CommunicationGather(Communication, '\x0d');
|
PortGather = new CommunicationGather(Communication, '\x0d');
|
||||||
PortGather.LineReceived += this.Port_LineReceived;
|
//PortGather.LineReceived += this.Port_LineReceived;
|
||||||
CommunicationMonitor = new GenericCommunicationMonitor(this, Communication, props.CommunicationMonitorProperties);
|
CommunicationMonitor = new GenericCommunicationMonitor(this, Communication, props.CommunicationMonitorProperties);
|
||||||
LineEnding = props.LineEnding;
|
LineEnding = props.LineEnding;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -165,12 +165,6 @@ namespace PepperDash.Essentials.Devices.Common.DSP
|
|||||||
/// <param name="args"></param>
|
/// <param name="args"></param>
|
||||||
private void Port_LineReceived(object dev, GenericCommMethodReceiveTextArgs args)
|
private void Port_LineReceived(object dev, GenericCommMethodReceiveTextArgs args)
|
||||||
{
|
{
|
||||||
if (Debug.Level == 2)
|
|
||||||
Debug.Console(2, this, "RX: '{0}'",
|
|
||||||
ShowHexResponse ? ComTextHelper.GetEscapedText(args.Text) : args.Text);
|
|
||||||
|
|
||||||
Debug.Console(1, this, "RX: '{0}'", args.Text);
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (args.Text.IndexOf("Welcome to the Tesira Text Protocol Server...") > -1)
|
if (args.Text.IndexOf("Welcome to the Tesira Text Protocol Server...") > -1)
|
||||||
@@ -288,7 +282,6 @@ namespace PepperDash.Essentials.Devices.Common.DSP
|
|||||||
/// <param name="s">Command to send</param>
|
/// <param name="s">Command to send</param>
|
||||||
public void SendLine(string s)
|
public void SendLine(string s)
|
||||||
{
|
{
|
||||||
Debug.Console(1, this, "TX: '{0}'", s);
|
|
||||||
Communication.SendText(s + "\x0a");
|
Communication.SendText(s + "\x0a");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -232,7 +232,6 @@ namespace PepperDash.Essentials.Devices.Common.Environment.Lutron
|
|||||||
/// <param name="s"></param>
|
/// <param name="s"></param>
|
||||||
public void SendLine(string s)
|
public void SendLine(string s)
|
||||||
{
|
{
|
||||||
Debug.Console(2, this, "TX: '{0}'", s);
|
|
||||||
Communication.SendText(s + Delimiter);
|
Communication.SendText(s + Delimiter);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -133,7 +133,6 @@ namespace PepperDash.Essentials.Devices.Common
|
|||||||
/// <param name="args"></param>
|
/// <param name="args"></param>
|
||||||
void Port_LineReceived(object dev, GenericCommMethodReceiveTextArgs args)
|
void Port_LineReceived(object dev, GenericCommMethodReceiveTextArgs args)
|
||||||
{
|
{
|
||||||
Debug.Console(2, this, "TVOneCurio RX: '{0}'", args.Text);
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (args.Text.IndexOf("login") > -1)
|
if (args.Text.IndexOf("login") > -1)
|
||||||
@@ -142,24 +141,18 @@ namespace PepperDash.Essentials.Devices.Common
|
|||||||
}
|
}
|
||||||
else if (args.Text.IndexOf("!Done Preset.Take =") > -1)
|
else if (args.Text.IndexOf("!Done Preset.Take =") > -1)
|
||||||
{
|
{
|
||||||
|
|
||||||
string presetNumberParse = args.Text.Remove(0, args.Text.IndexOf("=") + 2);
|
string presetNumberParse = args.Text.Remove(0, args.Text.IndexOf("=") + 2);
|
||||||
|
|
||||||
Debug.Console(1, this, "Preset Parse: {0}", presetNumberParse);
|
Debug.Console(1, this, "Preset Parse: {0}", presetNumberParse);
|
||||||
CurrentPreset = ushort.Parse(presetNumberParse);
|
CurrentPreset = ushort.Parse(presetNumberParse);
|
||||||
PresetFeedback.FireUpdate();
|
PresetFeedback.FireUpdate();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
if (Debug.Level == 2)
|
if (Debug.Level == 2)
|
||||||
Debug.Console(2, this, "Error parsing response: '{0}'\n{1}", args.Text, e);
|
Debug.Console(2, this, "Error parsing response: '{0}'\n{1}", args.Text, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -168,7 +161,6 @@ namespace PepperDash.Essentials.Devices.Common
|
|||||||
/// <param name="s">Command to send</param>
|
/// <param name="s">Command to send</param>
|
||||||
public void SendLine(string s)
|
public void SendLine(string s)
|
||||||
{
|
{
|
||||||
Debug.Console(1, this, "TVOne Cusio TX: '{0}'", s);
|
|
||||||
Communication.SendText(s + "\x0d\x0a");
|
Communication.SendText(s + "\x0d\x0a");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -133,7 +133,6 @@ namespace PepperDash.Essentials.Devices.Common
|
|||||||
/// <param name="args"></param>
|
/// <param name="args"></param>
|
||||||
void Port_LineReceived(object dev, GenericCommMethodReceiveTextArgs args)
|
void Port_LineReceived(object dev, GenericCommMethodReceiveTextArgs args)
|
||||||
{
|
{
|
||||||
Debug.Console(2, this, "TVOneCurio RX: '{0}'", args.Text);
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (args.Text.IndexOf("login") > -1)
|
if (args.Text.IndexOf("login") > -1)
|
||||||
@@ -148,11 +147,7 @@ namespace PepperDash.Essentials.Devices.Common
|
|||||||
Debug.Console(1, this, "Preset Parse: {0}", presetNumberParse);
|
Debug.Console(1, this, "Preset Parse: {0}", presetNumberParse);
|
||||||
CurrentPreset = ushort.Parse(presetNumberParse);
|
CurrentPreset = ushort.Parse(presetNumberParse);
|
||||||
PresetFeedback.FireUpdate();
|
PresetFeedback.FireUpdate();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
@@ -168,7 +163,6 @@ namespace PepperDash.Essentials.Devices.Common
|
|||||||
/// <param name="s">Command to send</param>
|
/// <param name="s">Command to send</param>
|
||||||
public void SendLine(string s)
|
public void SendLine(string s)
|
||||||
{
|
{
|
||||||
Debug.Console(1, this, "TVOne Cusio TX: '{0}'", s);
|
|
||||||
Communication.SendText(s + "\x0d\x0a");
|
Communication.SendText(s + "\x0d\x0a");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -219,8 +219,6 @@ namespace PepperDash.Essentials.Devices.Common
|
|||||||
string url = string.Format("http://{0}{1}", this.address, s);
|
string url = string.Format("http://{0}{1}", this.address, s);
|
||||||
request.Url = new UrlParser(url);
|
request.Url = new UrlParser(url);
|
||||||
HttpClientResponse response = WebClient.Dispatch(request);
|
HttpClientResponse response = WebClient.Dispatch(request);
|
||||||
|
|
||||||
Debug.Console(2, this, "DigitalLogger TX:\n'{0}'\nRX:\n'{1}'", url, response.ContentString);
|
|
||||||
return response.ContentString;
|
return response.ContentString;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -236,9 +234,6 @@ namespace PepperDash.Essentials.Devices.Common
|
|||||||
request.Url = new UrlParser(url);
|
request.Url = new UrlParser(url);
|
||||||
|
|
||||||
HttpClientResponse response = WebClient.Dispatch(request);
|
HttpClientResponse response = WebClient.Dispatch(request);
|
||||||
|
|
||||||
Debug.Console(2, this, "DigitalLogger TX:\n'{0}'\nRX:\n'{1}'", url, response.ContentString);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void CycleCircuit(uint circuit)
|
public void CycleCircuit(uint circuit)
|
||||||
|
|||||||
@@ -637,7 +637,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.Cisco
|
|||||||
{
|
{
|
||||||
if (CommDebuggingIsOn)
|
if (CommDebuggingIsOn)
|
||||||
{
|
{
|
||||||
if(!JsonFeedbackMessageIsIncoming)
|
if (!JsonFeedbackMessageIsIncoming)
|
||||||
Debug.Console(1, this, "RX: '{0}'", args.Text);
|
Debug.Console(1, this, "RX: '{0}'", args.Text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user