Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I interface XWT to custom hardware, like barcode scanners?

0
Posted

How do I interface XWT to custom hardware, like barcode scanners?

0

If you’re using XWT Helium (or newer), you can use the function xwt.newBrowserWindow(url) to open a new browser window. Pass the URL of a platform-specific binary (such as a Win32 .exe) as the argument. Then tell your users to click “run” instead of “save”. The binary you supply should act as an XML-RPC server, accepting connections only from 127.0.0.1 (for security). Once the user clicks “run”, your XWT application can make calls to the binary (using xwt.xmlrpc(“http://localhost:someport/”). The platform-specific binary can then talk to whatever custom hardware you’re using, acting as an intermediary between it and XWT.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123