コード例 #1
0
        public BroodMinderReading(BroodtoothDevice broodTooth)
        {
            var uuid = broodTooth.UUID.Trim ();

            Address = uuid.Substring (9, 8);

            // make sure it has a legit UUID
            if ((Address.Substring (2, 1) == ":")) {
                Elapsed = broodTooth.Elapsed;
                Humidity = broodTooth.Humidity;
                ReadDate = DateTime.Now;
                HiveName = string.Empty;
            }
        }
コード例 #2
0
        public BroodMinderReading(BroodtoothDevice broodTooth)
        {
            var uuid = broodTooth.UUID.Trim();

            Address = uuid.Substring(9, 8);

            // make sure it has a legit UUID
            if ((Address.Substring(2, 1) == ":"))
            {
                Elapsed  = broodTooth.Elapsed;
                Humidity = broodTooth.Humidity;
                ReadDate = DateTime.Now;
                HiveName = string.Empty;
            }
        }