Themes selection¶
The Themes Selection allows to choose LEDs sequences that are played on S550 or S370 devices.
There are 4 pre-programmed themes contained in the devices:
Health
Access
Value
Membership
Each theme has 4 sequences:
Ready: when the device is idle, waiting for reading a barcode or a NFC tag
Reading: when the device is reading a barcode or a NFC tag
Read success: when the device did read correctly a barcode or a NFC tag
Read failure: when the device did not read correctly a barcode or a NFC tag
Note
Both devices of the S370 can have their own theme. For instance, Access for the NFC reader and Health for the Barcode scanner. To choose on which device you set a theme, use the ThemeSelectionMask
value.
Select a theme¶
ThemeSelectionMask
values are used to target the type of scanner, reader on which you want to set the Theme
.
For instance:
The _selectedDevice is a CaptureHelperDevice
object that has been received from the DeviceArrival
event.
Here is a code showing how to select the Health
theme for the NFC reader. Then _selectedDevice is the
byte mask = ICaptureProperty.Values.ThemeSelectionMask.kNfc; // Targets NFC reader
byte[] themes = new byte[3];
themes[0] = 0; // Set for Common
themes[1] = ICaptureProperty.Values.ThemeSelection.kHealth; // Set for NFC
themes[2] = 0; // Set for Barcode
var result = await _selectedDevice.SetThemeSelection(mask, themes);
Debug.WriteLine($"Set Theme Selection; Result: {result.Result}");
Here is a code showing how to select the Membership
theme for the Barcode scanner:
byte mask = ICaptureProperty.Values.ThemeSelectionMask.kBarcode; // Targets Barcode scanner
byte[] themes = new byte[3];
themes[0] = 0; // Set for Common
themes[1] = 0; // Set for NFC
themes[2] = ICaptureProperty.Values.ThemeSelection.kMembership; // Set for Barcode
var result = await _selectedDevice.SetThemeSelection(mask, themes);
Debug.WriteLine($"Set Theme Selection; Result: {result.Result}");
Here is a code showing how to select the themes for both the NFC reader and Barcode scanner at the same time:
byte mask = ICaptureProperty.Values.ThemeSelectionMask.kNfcBarcode; // Targets NFC reader and Barcode scanner
byte[] themes = new byte[3];
themes[0] = 0; // Set for Common
themes[1] = ICaptureProperty.Values.ThemeSelection.kHealth; // Set for NFC
themes[2] = ICaptureProperty.Values.ThemeSelection.kMembership; // Set for Barcode
var result = await _selectedDevice.SetThemeSelection(mask, themes);
Debug.WriteLine($"Set Theme Selection; Result: {result.Result}");
Note
You should not expect the current sequence to be affected. You will have to trigger a new read again to see the new sequence.