コード例 #1
0
ファイル: Program.cs プロジェクト: muzzbuzz/MPSInverterPoller
        static void Main(string[] args)
        {
            Console.WriteLine("Press enter to start polling....");
            Console.ReadLine();

            MpsInverterPoll = new MpsInverterPoller(Log);
            MpsInverterPoll.OnBatsReceived += MpsInverterPoll_OnBatsReceived;
            MpsInverterPoll.OnGsReceived   += MpsInverterPoll_OnGsReceived;
            MpsInverterPoll.OnPsReceived   += MpsInverterPoll_OnPsReceived;

            MpsInverterPoll.Init(GetSerialPortNames.GetPortById(GetSerialPortNames.LOWER_LEFT));
            sc = new SetCommands(MpsInverterPoll);
            Menu();
        }
コード例 #2
0
 public SetCommands(MpsInverterPoller controller)
 {
     this.mps = controller;
 }