Warning Older Docs! - You are viewing documentation for a previous released version of RhoMobile Suite.

Code128securityLevel Decoder Setting

The Code128securityLevel Decoder Setting is used to set the code128securityLevel which describes the Code 128 security level.

Syntax

Code128securityLevel (Decoder Setting) <META> Syntax

<META HTTP-Equiv="scanner" content="code128securityLevel:[parameter]">

Code128securityLevel JavaScript Object Syntax:
By default the JavaScript Object 'scanner' will exist on the current page and can be used to interact directly with the Code128securityLevel.
To Set Code128securityLevel parameters via JavaScript use the following syntax: scanner.Parameter = Value;

e.g. scanner.code128securityLevel = Value;
Code128securityLevel Ruby Object Syntax:
By default the Ruby Object 'Scanner' will exist on the current page and can be used to interact directly with the Code128securityLevel.
To Set Code128securityLevel parameters via Ruby use the following syntax: Scanner.Parameter = Value

e.g. Scanner.code128securityLevel = Value

Parameters

Items listed in this section indicate parameters, or attributes which can be set.

Name Possible Values Description Default Value
code128securityLevel:[Value] 0 - 3 inclusive 0: This setting allows the scanner to operate in its most aggressive state, while providing sufficient security in decoding most 'in-spec' barcodes. 1: This setting eliminates most mis-decodes. 2: Select this option if security level 1 fails to eliminate mis-decodes. 3: Select this option if security level 1 and 2 fail to eliminate mis-decodes. Be advised that selecting level 3 is an extreme measure against mis-decoding and will significantly impair the decoding ability of the scanner. Device Specific

Requirements

RhoElements Version 1.0.0 or above
Supported Devices All supported devices.
Minimum Requirements Scanner or Imager module and device that supports code128securityLevel.
Persistence Transient - Decoder settings are only guaranteed to persist until the Scanner is disabled

HTML/JavaScript Examples

The following example sets the code128securityLevel to level 2:

<META HTTP-Equiv="scanner" Content="allDecoders:enabled">
<META HTTP-Equiv="scanner" Content="code128securityLevel:2">
<META HTTP-Equiv="scanner" Content="enabled">

Above example can also be written as shown below:

<META HTTP-Equiv="scanner" Content="allDecoders:enabled;code128securityLevel:2;enabled">

or

<META HTTP-Equiv="scanner-allDecoders" Content="enabled">
<META HTTP-Equiv="scanner-code128securityLevel" Content="2">
<META HTTP-Equiv="scanner-enabled" Content="SCN1">
Back to Top