async void ConfigReader()
        {
            _readerService.InventoryConfig.Power       = Convert.ToInt32(OutputPower);
            _readerService.InventoryConfig.IncludeRssi = true;
            await _readerService.Configure(_readerService.InventoryConfig);

            ShouldUpdate = false;
        }
Пример #2
0
        void RegisterSwitch(ReaderService reader)
        {
            TriggerAction = "Not Started";
            reader.SwitchConfig.AsyncReporting     = true;
            reader.SwitchConfig.SwitchStateChanged = (sender, e) =>
            {
                switch (e.State)
                {
                case SwitchState.Double:
                    TriggerAction = "Double Click";
                    break;

                case SwitchState.Single:
                    TriggerAction = "Single Click";
                    break;

                case SwitchState.Off:
                    TriggerAction = "Off";
                    break;
                }
                ;
            };
            reader.Configure(reader.SwitchConfig);
        }