mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 02:47:17 +00:00
Use node-bindings.
This commit is contained in:
parent
bbf185cbaa
commit
51ae2cf0e4
2 changed files with 4 additions and 1 deletions
|
|
@ -10,5 +10,8 @@
|
|||
"scripts": {
|
||||
"install": "node-waf configure build"
|
||||
},
|
||||
"dependencies": {
|
||||
"bindings": "*"
|
||||
},
|
||||
"engines": { "node": "0.6" }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ var Buffer = require('buffer').Buffer;
|
|||
var stream = require('stream');
|
||||
var fs = require('fs');
|
||||
var net = require('net');
|
||||
var serialport_native = require('./serialport_native');
|
||||
var serialport_native = require('bindings')('serialport_native.node');
|
||||
var IOWatcher = process.binding('io_watcher').IOWatcher;
|
||||
|
||||
var BAUDRATES = [115200, 57600, 38400, 19200, 9600, 4800, 2400, 1800, 1200, 600, 300, 200, 150, 134, 110, 75, 50];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue