Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error on disconnect #461

Open
waghekapil opened this issue Feb 18, 2021 · 2 comments
Open

Getting error on disconnect #461

waghekapil opened this issue Feb 18, 2021 · 2 comments

Comments

@waghekapil
Copy link

waghekapil commented Feb 18, 2021

Hello,

I am using this library on RockPi 4B v1.3 and OS is Debian 9 Desktop.

On disconnect I'm getting below error. We have used nRF Connect App, our own mobile apps for the testing. With all the apps we are getting same error. If I moved the device out of the range, I get the same error.

bleno.on('disconnect', callback (clientAddress) also not worked.

Can you please check and help me to handle it error or solve the issue.

/home/linaro/SM/node_modules/bleno/lib/hci-socket/gatt.js:283
this._handles[i].uuid === '2902' && this._handles[i].value.readUInt16LE(0) !== 0) {
^
TypeError: this._handles[i].value.readUInt16LE is not a function
at Gatt.onAclStreamEnd (/home/linaro/SM/node_modules/bleno/lib/hci-socket/gatt.js:283:6
at emitNone (events.js:111:20)
at AclStream.emit (events.js:208:7)
at AclStream.push (/home/linaro/SM/node_modules/bleno/lib/hci-socket/acl-stream.js:28:1
at BlenoBindings.onDisconnComplete (/home/linaro/SM/node_modules/bleno/lib/hci-socket/b
154:21)
at emitTwo (events.js:126:13)
at Hci.emit (events.js:214:7)
at Hci.onSocketData (/home/linaro/SM/node_modules/bleno/lib/hci-socket/hci.js:520:12)
at emitOne (events.js:116:13)
at BluetoothHciSocket.emit (events.js:211:7)

@waghekapil
Copy link
Author

Can you please help me?

@hanhyegyeong
Copy link

you still have this problem? I have got same thing.
so I remove && after code.

this._handles[i].value.readUInt16LE(0) !== 0

YOURDIRECTORY/node_modules/bleno/lib/hci-socket/gatt.js:283

No other problems occurred. But I'm not 100% sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants