Example #1
0
        public Item <bool> ReadBool(DeviceAddress deviceAddress)
        {
            var datas = readBool(deviceAddress, 1);

            return(datas == null ? Item <bool> .CreateDefault() :
                   new Item <bool>()
            {
                Vaule = NetConvert.ByteToBool(datas[0], 0), UpdateTime = DateTime.Now, Quality = QUALITIES.QUALITY_GOOD
            });
        }