mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-14 12:15:01 +00:00
1.1.0 Added verbose logging to http failure on MC initial connect
This commit is contained in:
@@ -20,7 +20,9 @@ namespace PepperDash.Essentials.Core
|
|||||||
public abstract eCueType Type { get; }
|
public abstract eCueType Type { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
/// Feedbacks can be put into test mode for simulation of events without real data.
|
||||||
|
/// Using JSON debugging methods and the Set/ClearTestValue methods, we can simulate
|
||||||
|
/// Feedback behaviors
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool InTestMode { get; protected set; }
|
public bool InTestMode { get; protected set; }
|
||||||
|
|
||||||
@@ -58,6 +60,9 @@ namespace PepperDash.Essentials.Core
|
|||||||
CrestronInvoke.BeginInvoke(o => FireUpdate());
|
CrestronInvoke.BeginInvoke(o => FireUpdate());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Helper method that fires event. Use this intstead of calling OutputChange
|
||||||
|
/// </summary>
|
||||||
protected void OnOutputChange()
|
protected void OnOutputChange()
|
||||||
{
|
{
|
||||||
if (OutputChange != null) OutputChange(this, EventArgs.Empty);
|
if (OutputChange != null) OutputChange(this, EventArgs.Empty);
|
||||||
@@ -70,7 +75,8 @@ namespace PepperDash.Essentials.Core
|
|||||||
public class BoolFeedback : Feedback
|
public class BoolFeedback : Feedback
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns the current value of the feedback, derived from the ValueFunc
|
/// Returns the current value of the feedback, derived from the ValueFunc. The ValueFunc is
|
||||||
|
/// evaluated whenever FireUpdate() is called
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public override bool BoolValue { get { return _BoolValue; } }
|
public override bool BoolValue { get { return _BoolValue; } }
|
||||||
bool _BoolValue;
|
bool _BoolValue;
|
||||||
@@ -169,6 +175,7 @@ namespace PepperDash.Essentials.Core
|
|||||||
public override int IntValue { get { return _IntValue; } } // ValueFunc.Invoke(); } }
|
public override int IntValue { get { return _IntValue; } } // ValueFunc.Invoke(); } }
|
||||||
int _IntValue;
|
int _IntValue;
|
||||||
public ushort UShortValue { get { return (ushort)_IntValue; } }
|
public ushort UShortValue { get { return (ushort)_IntValue; } }
|
||||||
|
|
||||||
public override eCueType Type { get { return eCueType.Int; } }
|
public override eCueType Type { get { return eCueType.Int; } }
|
||||||
|
|
||||||
public int TestValue { get; private set; }
|
public int TestValue { get; private set; }
|
||||||
@@ -241,6 +248,7 @@ namespace PepperDash.Essentials.Core
|
|||||||
{
|
{
|
||||||
public override string StringValue { get { return _StringValue; } } // ValueFunc.Invoke(); } }
|
public override string StringValue { get { return _StringValue; } } // ValueFunc.Invoke(); } }
|
||||||
string _StringValue;
|
string _StringValue;
|
||||||
|
|
||||||
public override eCueType Type { get { return eCueType.String; } }
|
public override eCueType Type { get { return eCueType.String; } }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ namespace PepperDash.Essentials
|
|||||||
[JsonProperty("rooms")]
|
[JsonProperty("rooms")]
|
||||||
public List<EssentialsRoomConfig> Rooms { get; set; }
|
public List<EssentialsRoomConfig> Rooms { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -4,5 +4,5 @@
|
|||||||
[assembly: AssemblyCompany("PepperDash Technology Corp")]
|
[assembly: AssemblyCompany("PepperDash Technology Corp")]
|
||||||
[assembly: AssemblyProduct("PepperDashEssentials")]
|
[assembly: AssemblyProduct("PepperDashEssentials")]
|
||||||
[assembly: AssemblyCopyright("Copyright © PepperDash Technology Corp 2017")]
|
[assembly: AssemblyCopyright("Copyright © PepperDash Technology Corp 2017")]
|
||||||
[assembly: AssemblyVersion("1.0.47.*")]
|
[assembly: AssemblyVersion("1.1.0.*")]
|
||||||
|
|
||||||
|
|||||||
@@ -237,7 +237,7 @@ namespace PepperDash.Essentials
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
var regClient = new HttpClient();
|
var regClient = new HttpClient();
|
||||||
regClient.Verbose = false;
|
regClient.Verbose = true;
|
||||||
regClient.KeepAlive = true;
|
regClient.KeepAlive = true;
|
||||||
|
|
||||||
string url = string.Format("http://{0}/api/system/join/{1}", Config.ServerUrl, SystemUuid);
|
string url = string.Format("http://{0}/api/system/join/{1}", Config.ServerUrl, SystemUuid);
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user