mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-14 12:15:01 +00:00
Adds some comments, initializes JoinMaps in EiscApi and moves GenericComm factory to new methodology
This commit is contained in:
@@ -101,6 +101,8 @@ namespace PepperDash.Essentials.Bridges
|
||||
public EiscApi(DeviceConfig dc) :
|
||||
base(dc.Key)
|
||||
{
|
||||
JoinMaps = new Dictionary<string, JoinMapBaseAdvanced>();
|
||||
|
||||
PropertiesConfig = JsonConvert.DeserializeObject<EiscApiPropertiesConfig>(dc.Properties.ToString());
|
||||
|
||||
Eisc = new ThreeSeriesTcpIpEthernetIntersystemCommunications(PropertiesConfig.Control.IpIdInt, PropertiesConfig.Control.TcpSshProperties.Address, Global.ControlSystem);
|
||||
@@ -119,6 +121,9 @@ namespace PepperDash.Essentials.Bridges
|
||||
|
||||
if (device != null)
|
||||
{
|
||||
Debug.Console(1, this, "Linking Device: '{0}'", d.DeviceKey);
|
||||
|
||||
|
||||
if (device is IBridge) // Check for this first to allow bridges in plugins to override existing bridges that apply to the same type.
|
||||
{
|
||||
(device as IBridge).LinkToApi(Eisc, d.JoinStart, d.JoinMapKey);
|
||||
@@ -126,6 +131,7 @@ namespace PepperDash.Essentials.Bridges
|
||||
}
|
||||
else if (device is IBridgeAdvanced)
|
||||
{
|
||||
Debug.Console(2, this, "'{0}' is IBridgeAdvanced");
|
||||
(device as IBridgeAdvanced).LinkToApi(Eisc, d.JoinStart, d.JoinMapKey, this);
|
||||
}
|
||||
else if (device is PepperDash.Essentials.Core.Monitoring.SystemMonitorController)
|
||||
|
||||
Reference in New Issue
Block a user