I am looking for someone who knows a bit about the Aprilaire plugin internals, specifically I would like to interface
I have successfully used the following from ASP when using VisualBasic:
but I am trying to include support for Aprilaire within my plugin that is coded in C#... Since I must include reference to the Aprilaire plugin, I cannot use the syntax above. The closest I have come is with the following code, but when I run it I only get "0" back as a response.
I have also tried creating an object from HSPI_APRILAIRE.HSPI instead of HSPI_APRILAIRE.Thermostat, but the results were worse in that case. Can anyone help me interface with this plugin?
I have successfully used the following from ASP when using VisualBasic:
Code:
intCurTemp = hs.Plugin("Aprilaire Thermostats").GetTemp(1,1)
Code:
HSPI_APRILAIRE.Thermostat thermObj = new HSPI_APRILAIRE.Thermostat("Main", false); CurOper = thermObj.GetOperating(thermID).ToString(); CurTemp = thermObj.GetTemp(thermID).ToString(); ModeSet = thermObj.GetModeSet(thermID).ToString(); ModeSet = thermObj.GetCurrentMode(thermID).ToString(); CoolSet = thermObj.GetCoolSet(thermID).ToString(); HeatSet = thermObj.GetHeatSet(thermID).ToString(); FanSet = thermObj.GetFanMode(thermID).ToString(); HoldSet = thermObj.GetHoldMode(thermID).ToString();
Comment