예제 #1
0
        public Reader(SensorsHandler sensorsObject)
        {
            sensors            = sensorsObject;
            measuresNotChanged = new int[5];

            // Writing Timer
            GT.Timer writingTimer = new GT.Timer(120000);
            writingTimer.Tick += writingTimer_Tick;
            writingTimer.Start();
        }
예제 #2
0
        void ProgramStarted()
        {
            Debug.Print("Program Started");

            // Setup sdcard
            SDMemoryCard.SetSDcard(sdCard);

            // Setup display
            Display.SetDisplay(displayTE35);

            // Setup sensor
            sensors = new SensorsHandler(usbHost, button);

            // Setup network
            network = new Network(ethernetJ11D);

            // Setup reader
            reader = new Reader(sensors);

            // MqttHandler
            mqttHandler = new MqttHandler();
        }