Hello.
i have problems setting the Audio Feedback Mode in Datawedge by Set Config API.
When i use the following Code the display_bt_address_barcode works but the remote _scanner_audio_feedback_mode didn't work, but both under the BARCODE Plugin listed in teh API description. Does anyone have an idrear why it didn't work? The Datawedge Version is 11.1.31 on the Device. The Device is a TC21 with attached RS507 Bluetooth Scanner. If i set the option manual in DataWedge Profile it works.
<code>
Bundle profileConfig = new Bundle();
profileConfig.PutString("PROFILE_NAME", EXTRA_PROFILE_NAME);
profileConfig.PutString("CONFIG_MODE", "UPDATE");
Bundle bConfig = new Bundle();
bConfig.PutString("PLUGIN_NAME", "BARCODE");
bConfig.PutString("RESET_CONFIG", "false");
Bundle bParams = new Bundle();
bParams.PutString("scanner_selection_by_identifier", "BLUETOOTH_SSI");
bParams.PutString("display_bt_address_barcode", "true");
bParams.PutString("remote_scanner_audio_feedback_mode", "2");
bConfig.PutBundle("PARAM_LIST", bParams);
profileConfig.PutBundle("PLUGIN_CONFIG", bConfig);
SendDataWedgeIntentWithExtra(ACTION_DATAWEDGE_FROM_6_2, EXTRA_SET_CONFIG, profileConfig);
</code>
Thx and Regards
Sascha
5 Replies
I think you'll need to remove the quotes around "2", e.g;
I'd also check out registering for results from DataWedge: https://techdocs.zebra.com/datawedge/latest/guide/api/resultinfo/ which helps track down bugs in your code
For integer parameters use PutInt:
bParams.PutInt("remote_scanner_audio_feedback_mode", 2);
Correct! Oversight on my part... Thanks Richard!
Hi,
thx for your reply's tried with bParams.PutInt("remote_scanner_audio_feedback_mode", 2); but didn't work either, maybe the remote_scanner_audio_feedback_mode is wrong? But taken so from the Documentation of the API. Will try to implement the result getting of this, but maybe you have an idear in front if this setting or spelling of this setting is wrong from my side?
Thx Sascha
you should also set which scanner you are targeting: https://techdocs.zebra.com/datawedge/latest/guide/api/setconfig/#param_…