soundanalogous / Breakout

Breakout is a javascript library and toolkit for connecting Arduino and other IOBoards to the web
www.breakoutjs.com
MIT License
180 stars 20 forks source link

Thermal and barcode devices #42

Closed ghost closed 11 years ago

ghost commented 11 years ago

Hi, can i use Breakout server to collect data from barcode scanner or send zpl/esc commands to thermal pos printers that uses serial ports by passing firmata?

soundanalogous commented 11 years ago

Firmata is not going to be helpful if I understand you correctly. If you want to send commands through the network directly to a serial device (without using an Arduino) it would be easier to use node-serialport to connect to the barcode scanner and then create a websocket connection to your web application using socket.io. See the nodeJS version of breakout server (Breakout/node_server/server.js) for a simple serial to websocket implementation. You could use that as a start or search google for similar solutions. There are a ton of projects using node-serialport that you can find online.