Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

darryncampbell/datawedge-websockets-bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Please be aware that this application / sample is provided as-is for demonstration purposes without any guarantee of support

DataWedge-WebSockets-Bridge

Interface with Zebra DataWedge using WebSockets

Read the blog associated with this application at https://darryncampbellblog.wordpress.com/2017/06/11/datawedge-to-websockets-bridge/

Architecture

Alt text

Steps to use the demo:

  1. Configure a DataWedge profile as described in the associated blog post and ensure the profile is active when you launch the browser
  2. Install the bridge application and either launch it or scan a barcode to start the WebSocket server
  3. Start a web server and host the demo page
  4. Navigate to the demo webpage on the device using Chrome or a similar browser capable of WebSockets
  5. Scan a barcode, if everything is set up correctly you should see scans appear on the page. If you do not see scans, check the DataWedge setup and whether the WebSockets are connected, the status is shown in blue on the page.
  6. Disable and re-enable the laser using the buttons on the page, again if everything is set up correctly the buttons should affect the laser.

Note about running this demo on Oreo or higher:

A recent pull request added support for Android Oreo and higher, taking account of Android Oreo background restrictions. To take advantage of this, ensure you configure DataWedge to send Intents as "Send via startForegroundService" OR, preferably in mixed deployments, check the "Use startForegroundService on failure" checkbox in the Intent Output configuration.

Web application

Alt text

DataWedge configuration

Alt text

Bridge application

Alt text

Questions?