Skip to content

Commit

Permalink
Set default delimiter to none.
Browse files Browse the repository at this point in the history
  • Loading branch information
thorikawa committed Oct 26, 2017
1 parent fa3d538 commit ac10d91
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ device
bluetooth.connect(address, channel, function(err, connection){
if(err) return console.error(err);

connection.delimiter = Buffer.from('\n', 'utf8');
connection.on('data', (buffer) => {
console.log('received message:', buffer.toString());
});
Expand Down
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ function Connection(port, address){
this.port = port;
this.address = address;
this.buffer = new Buffer(0);
this.delimiter = Buffer.from('\n', 'utf8');
const read = function () {
process.nextTick(function() {
if (self.isOpen()) {
Expand Down

0 comments on commit ac10d91

Please sign in to comment.