xsens / xsens_dot_server

34 stars 24 forks source link

TypeError xsens_dot_server #45

Open SamMat1993 opened 2 years ago

SamMat1993 commented 2 years ago

I am trying to connect to the DOT server but when I ran the command "node xsensDotServer" I got this error:

Node: 12.16.2 NPM: 8.16.0 Bluetooth 4.0: I had to do the workaround

C:\Users\Sam\xsens_dot_server>npm install npm WARN deprecated node-pre-gyp@0.15.0: Please upgrade to @mapbox/node-pre-gyp: the non-scoped node-pre-gyp package is deprecated and only the @mapbox scoped package will recieve updates in the future

up to date, audited 220 packages in 19s

3 packages are looking for funding run npm fund for details

14 vulnerabilities (3 low, 2 moderate, 6 high, 3 critical)

To address issues that do not require attention, run: npm audit fix

Some issues need review, and may require choosing a different dependency.

Run npm audit for details.

C:\Users\Sam\xsens_dot_server>node xsensDotServer Web GUI Handler instantiated BLE Handler started. Webserver listening on port 8080, IP address: 192.168.1.240 C:\Users\Sam\xsens_dot_server\node_modules\bluetooth-hci-socket\lib\usb.js:95 this._hciEventEndpoint.on('data', this.onHciEventEndpointData.bind(this)); ^

TypeError: Cannot read property 'on' of undefined at BluetoothHciSocket.start (C:\Users\Sam\xsens_dot_server\node_modules\bluetooth-hci-socket\lib\usb.js:95:28) at Hci.init (C:\Users\Sam\xsens_dot_server\node_modules\noble\lib\hci-socket\hci.js:102:18) at NobleBindings.init (C:\Users\Sam\xsens_dot_server\node_modules\noble\lib\hci-socket\bindings.js:82:13) at Noble. (C:\Users\Sam\xsens_dot_server\node_modules\noble\lib\noble.js:57:24) at processTicksAndRejections (internal/process/task_queues.js:79:11)

Thank you, Sam Mathew