diff --git a/src/Pepperdash Core/Comm/ControlPropertiesConfig.cs b/src/Pepperdash Core/Comm/ControlPropertiesConfig.cs
index ae01560..ff869f7 100644
--- a/src/Pepperdash Core/Comm/ControlPropertiesConfig.cs
+++ b/src/Pepperdash Core/Comm/ControlPropertiesConfig.cs
@@ -20,14 +20,14 @@ namespace PepperDash.Core
///
/// The key of the device that contains the control port
///
- [JsonProperty("controlPortDevKey")]
+ [JsonProperty("controlPortDevKey", NullValueHandling = NullValueHandling.Ignore)]
public string ControlPortDevKey { get; set; }
///
/// The number of the control port on the device specified by ControlPortDevKey
///
[JsonProperty("controlPortNumber", NullValueHandling = NullValueHandling.Ignore)] // In case "null" is present in config on this value
- public uint ControlPortNumber { get; set; }
+ public uint? ControlPortNumber { get; set; }
///
/// The name of the control port on the device specified by ControlPortDevKey
@@ -38,19 +38,19 @@ namespace PepperDash.Core
///
/// Properties for ethernet based communications
///
- [JsonProperty("tcpSshProperties")]
+ [JsonProperty("tcpSshProperties", NullValueHandling = NullValueHandling.Ignore)]
public TcpSshPropertiesConfig TcpSshProperties { get; set; }
///
/// The filename and path for the IR file
///
- [JsonProperty("irFile")]
+ [JsonProperty("irFile", NullValueHandling = NullValueHandling.Ignore)]
public string IrFile { get; set; }
///
/// The IpId of a Crestron device
///
- [JsonProperty("ipId")]
+ [JsonProperty("ipId", NullValueHandling = NullValueHandling.Ignore)]
public string IpId { get; set; }
///
@@ -62,33 +62,32 @@ namespace PepperDash.Core
///
/// Char indicating end of line
///
- [JsonProperty("endOfLineChar")]
+ [JsonProperty("endOfLineChar", NullValueHandling = NullValueHandling.Ignore)]
public char EndOfLineChar { get; set; }
///
/// Defaults to Environment.NewLine;
///
- [JsonProperty("endOfLineString")]
+ [JsonProperty("endOfLineString", NullValueHandling = NullValueHandling.Ignore)]
public string EndOfLineString { get; set; }
///
/// Indicates
///
- [JsonProperty("deviceReadyResponsePattern")]
+ [JsonProperty("deviceReadyResponsePattern", NullValueHandling = NullValueHandling.Ignore)]
public string DeviceReadyResponsePattern { get; set; }
///
/// Used when communcating to programs running in VC-4
///
- [JsonProperty("roomId")]
+ [JsonProperty("roomId", NullValueHandling = NullValueHandling.Ignore)]
public string RoomId { get; set; }
///
/// Constructor
///
public ControlPropertiesConfig()
- {
- EndOfLineString = CrestronEnvironment.NewLine;
+ {
}
}
}
\ No newline at end of file