Closed kylebrennan closed 4 years ago
Please take a look at https://github.com/darryncampbell/DataWedgeCordova/blob/master/www/js/index.js#L77, that line sets the ean8 decoder for a particular profile but you would add "aim_type":"5" here for example (note that 5 is a string). I do not have a JSON example of setting scanner properties but this Kotlin code shows the same decoder alongside some properties such as picklist and illumination mode: https://github.com/darryncampbell/DataWedgeKotlin/blob/master/app/src/main/java/com/darryncampbell/datawedgekotlin/DWInterface.kt#L82 Hopefully that gives some context of the structure that SET_CONFIG expects. Also note scanner_selection should be set to auto, https://github.com/darryncampbell/DataWedgeCordova/blob/master/www/js/index.js#L76,
Ah that did it! I needed to add scanner_selection : 'auto'
. Thank you!
Glad that resolved it - I have asked the documentation team to highlight the need for scanner_selection as it is a common problem.
Hi, I'm having trouble with something, and I was hoping you could help out. I'm trying to set extra parameters on my barcode scanner profile (ie
aim_type
,same_barcode_timeout
,decode_haptic_feedback
, etc), and nothing I'm doing is changing the settings on my profile. I'm confused by this line in the docs:What does it mean
EXTRA_DATA
? Is that just supposed to be another JSON object? Here is what I have:I've also tried changing
PARAM_LIST
to:but still no luck. The profile is created when I make the
setProfile
call, but the extra settings are never updated in either case. Can anyone provide some insight here? Thank you.