コード例 #1
0
        public Challenge(IotBase iotItem, string userDefinedType)
            : base(userDefinedType, "n", ValuesPerSample.One, 60000, "challenge")
        {
            this.iotItem = iotItem;

            StartMeasuring();
        }
コード例 #2
0
        public static uint AddItem(IotBase iotItem)
        {
            uint id = GetFreeId();

            if (id == uint.MaxValue)
            {
                throw new Exception("maximum Iots allocation reached - increase value of MaxIot in IotList.cs");
            }
            IotItems[id] = iotItem;
            return(id);
        }