mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 02:47:17 +00:00
This is a major change. To reading, the poller and the bindings layer, there isn’t a great way to do this piecemeal. The goal here is to make bindings a plugin layer, our c++ bindings isolated and tested, and make Serialport a streams object.
- Move all bindings into platform specific modules DarwinBinding LinuxBinding, and WindowsBinding
- Separate out the bindings from the SerialPort class so it can be required by itself.
- Provide mock bindings as a tested first class bindings layer
- Mixin stream methods with `pushBindingWrap`, inspired from fs.readStream
- All integration tests now require an Arduino
- Ditch sandboxed modules as we don't need to be that heavy handed to test anymore
TODO
- windows binding
- performance test
- memory leak test
- 🎉
15 lines
322 B
JavaScript
15 lines
322 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* @module serialport
|
|
* @copyright Chris Williams <chris@iterativedesigns.com>
|
|
*/
|
|
|
|
var SerialPort = require('./serialport');
|
|
var Binding = require('./bindings-auto-detect');
|
|
var parsers = require('./parsers');
|
|
|
|
SerialPort.Binding = Binding;
|
|
SerialPort.parsers = parsers;
|
|
|
|
module.exports = SerialPort;
|