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

this._discoveredPeripheralUUids.indexOf is not a function #71

Open
rugarci opened this issue Jun 3, 2023 · 5 comments
Open

this._discoveredPeripheralUUids.indexOf is not a function #71

rugarci opened this issue Jun 3, 2023 · 5 comments

Comments

@rugarci
Copy link

rugarci commented Jun 3, 2023

Once I have connected to a peripheral correctly, from time to time I get and error message and node-red stops

3 Jun 08:26:09 - [red] Uncaught Exception:
3 Jun 08:26:09 - [error] TypeError: this._discoveredPeripheralUUids.indexOf is not a function
at PeripheralRemovableNoble.onMiss (/data/node_modules/node-red-contrib-generic-ble/dist/noble/noble/index.js:61:72)
at BluezBindings.emit (node:events:513:28)
at BluezBindings.onDeviceMissed (/data/node_modules/node-red-contrib-generic-ble/dist/noble/lib/bluez/noble/lib/bluez/bindings.js:716:10)
at BluezBindings.onDevicesServicesCharacteristicsMissed (/data/node_modules/node-red-contrib-generic-ble/dist/noble/lib/bluez/noble/lib/bluez/bindings.js:710:12)
at ProxyInterface.emit (node:events:513:28)
at EventEmitter.$listeners. (/data/node_modules/dbus-next/lib/client/proxy-interface.js:108:17)
at EventEmitter.emit (node:events:513:28)
at handleMessage (/data/node_modules/dbus-next/lib/bus.js:118:23)
at EventEmitter. (/data/node_modules/dbus-next/lib/bus.js:147:9)
at EventEmitter.emit (node:events:513:28)

Running in RPI 3 with the latest versions of node-red and node-red-contrib-generic-ble

3 Jun 08:23:23 - [info] Node-RED version: v3.0.2
3 Jun 08:23:23 - [info] Node.js version: v16.20.0
3 Jun 08:23:23 - [info] Linux 5.10.103-v7+ arm LE

Anyone can help?

Thanks!

@hotrock3
Copy link

Running into the same problem on an OrangePi
latest version of Node-RED (3.0.2)
Node.js (20.3.0)
Linux 5.16.17-sun50iw6 arm64 LE

@dhruvjhalani95
Copy link

Facing the same problem. Were anyone of you able to find a solution to the problem @hotrock3 @rugarci

@GVC16
Copy link

GVC16 commented Jun 21, 2023

Encountering same problem. whether it is node-red-contrib-generic-ble@4.0.3 or 4.0.1, causing node-RED service to fail.

@hotrock3
Copy link

hotrock3 commented Jun 22, 2023

Facing the same problem. Were anyone of you able to find a solution to the problem @hotrock3 @rugarci

@dhruvjhalani95 No solution to this problem identified. Shifting to ESP32 and the use of MQTT instead of using ATMega328 with BLE. This is probably a better approach in the long run but I was trying to avoid buying more stuff.

@emc-vishaal
Copy link

emc-vishaal commented Aug 17, 2023

Same issue here. RasPi 4 with latest node-red v3.0.2
node.js v18.17.1
linux 6.1.21-v8+ arm LE

Is there any other setup to connect to BLE/GATT devices using node-red?

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

5 participants