예제 #1
0
		public static void Main()
		{
			var config = new OfficeTemperatureConfig
			{
				TemperatureSensorPort = new OutputPort(Pins.GPIO_PIN_D2, false),
				StatusLedPort = new OutputPort(Pins.ONBOARD_LED, false),
				TemperatureReportingInterval = new TimeSpan(0, 0, 15, 00),
				TestMode = true,
				Token = "00000000000000000000000000000000",
				CountryCode = "DE",
				CityName = "Berlin",
				ZipCode = "10969",
				Latitude = "52.50",
				Longitude = "13.41"
			};
			temperatureReporter = new OfficeTemperatureReporter(config);
			temperatureReporter.Start();
			Thread.Sleep(Timeout.Infinite);
		}
예제 #2
0
        public static void Main()
        {
            var config = new OfficeTemperatureConfig
            {
                TemperatureSensorPort        = new OutputPort(Pins.GPIO_PIN_D2, false),
                StatusLedPort                = new OutputPort(Pins.ONBOARD_LED, false),
                TemperatureReportingInterval = new TimeSpan(0, 0, 15, 00),
                TestMode    = true,
                Token       = "00000000000000000000000000000000",
                CountryCode = "DE",
                CityName    = "Berlin",
                ZipCode     = "10969",
                Latitude    = "52.50",
                Longitude   = "13.41"
            };

            temperatureReporter = new OfficeTemperatureReporter(config);
            temperatureReporter.Start();
            Thread.Sleep(Timeout.Infinite);
        }