示例#1
0
        private async void OnTimedEventAsync(object sender, ElapsedEventArgs e)
        {
            try
            {
                var chamberData = await Chamber.GetChamberDataAsync();

                NewDataEvent?.Invoke(this, chamberData);
            }
            catch (DeviceNotConnectedException exception)
            {
                //TODO Manage exception
                throw exception;
            }
        }