Esempio n. 1
0
        void ProgramStarted()
        {
            Debug.Print("Program Started");

            _loggerDisplay = new LoggerDisplay(display_T35);
            _temperatureReader = new TemperatureReader(temperatureHumidity, lightSensor, _loggerDisplay);
            _temperatureReader.Start();

            //_rfidMonitor = new RfidMonitor(rfid, _loggerDisplay);
            //_statusMessageMonitor = new StatusMessageMonitor(relay_X1, _loggerDisplay);
            //_buttonMonitor = new ButtonMonitor(button);

            _networkConnection = new NetworkConnection(ethernet_J11D, _loggerDisplay);
            _networkConnection.NetworkUp+=NetworkConnectionUp;
            _networkConnection.NetworkDown+=NetworkConnectionDown;
            _networkConnection.Initialize();

            _monitor = new Monitor(_temperatureReader, _loggerDisplay);
        }
 public NetworkConnection(Ethernet_J11D ethernetJ11D, LoggerDisplay loggerDisplay)
 {
     _ethernetJ11D = ethernetJ11D;
     _loggerDisplay = loggerDisplay;
 }