From 48276a24bb62c8410638690bb8a2f8039bb56faa Mon Sep 17 00:00:00 2001 From: Jason Alborough Date: Mon, 3 Jan 2022 14:08:11 -0500 Subject: [PATCH] feature: adds GenericHttpClient to CreateCommForDevice medthod --- .../PepperDashEssentialsBase/Comm and IR/CommFactory.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/essentials-framework/Essentials Core/PepperDashEssentialsBase/Comm and IR/CommFactory.cs b/essentials-framework/Essentials Core/PepperDashEssentialsBase/Comm and IR/CommFactory.cs index 8a5efe47..9412e354 100644 --- a/essentials-framework/Essentials Core/PepperDashEssentialsBase/Comm and IR/CommFactory.cs +++ b/essentials-framework/Essentials Core/PepperDashEssentialsBase/Comm and IR/CommFactory.cs @@ -81,6 +81,12 @@ namespace PepperDash.Essentials.Core } case eControlMethod.Telnet: break; + case eControlMethod.Http: + { + var http = new GenericHttpClient(deviceConfig.Key + "-http", deviceConfig.Name + "-http" ,c.Address); + comm = http; + break; + } default: break; }