Skip to content

Commit ac10d91

Browse files
committed
Set default delimiter to none.
1 parent fa3d538 commit ac10d91

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

example/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ device
1919
bluetooth.connect(address, channel, function(err, connection){
2020
if(err) return console.error(err);
2121

22+
connection.delimiter = Buffer.from('\n', 'utf8');
2223
connection.on('data', (buffer) => {
2324
console.log('received message:', buffer.toString());
2425
});

index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ function Connection(port, address){
1919
this.port = port;
2020
this.address = address;
2121
this.buffer = new Buffer(0);
22-
this.delimiter = Buffer.from('\n', 'utf8');
2322
const read = function () {
2423
process.nextTick(function() {
2524
if (self.isOpen()) {

0 commit comments

Comments
 (0)