Added IBridge to make it easier to deal with calling the linkToApi method. Added as an else if in EiscApI to ensure backwards compatibility.

This commit is contained in:
Joshua Gutenplan
2019-05-28 19:25:18 -07:00
parent 31b0683cdf
commit 47fb805766
4 changed files with 21 additions and 1 deletions

View File

@@ -123,6 +123,11 @@ namespace PepperDash.Essentials.Bridges
{
(device as IDigitalInput).LinkToApi(Eisc, d.JoinStart, d.JoinMapKey);
continue;
}
else if (device is IBridge)
{
(device as IBridge).LinkToApi(Eisc, d.JoinStart, d.JoinMapKey);
continue;
}
//else if (device is LightingBase)
//{