示例#1
0
        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;
 }