@stoprocent/noble
Advanced tools
Comparing version 1.10.0 to 1.10.1
@@ -7,3 +7,3 @@ const debug = require('debug')('hci'); | ||
const async = require('async'); | ||
const SerialPort = require('serialport'); | ||
const { SerialPort } = require('serialport'); | ||
const HciSerialParser = require('./hci-serial-parser'); | ||
@@ -148,3 +148,4 @@ | ||
// Create Serial Port | ||
this._socket = new SerialPort(process.env.NOBLE_HCI_UART_PORT || undefined, { | ||
this._socket = new SerialPort({ | ||
path: process.env.NOBLE_HCI_UART_PORT || undefined, | ||
baudRate: parseInt(process.env.NOBLE_HCI_UART_BAUD_RATE) || 1000000, | ||
@@ -151,0 +152,0 @@ autoOpen: false, |
@@ -10,3 +10,3 @@ { | ||
"description": "A Node.js BLE (Bluetooth Low Energy) central library.", | ||
"version": "1.10.0", | ||
"version": "1.10.1", | ||
"repository": { | ||
@@ -13,0 +13,0 @@ "type": "git", |
1645399
19019