CANDY-LINE / node-red-contrib-generic-ble

A Node-RED node set for providing access to generic BLE peripheral GATT characteristics.
Apache License 2.0
24 stars 22 forks source link

Connecting Arduino nano 33 BLE #27

Closed stepanurban closed 4 years ago

stepanurban commented 4 years ago

Hi, I'm trying to connect Arduino nano 33 BLE board. When I use gatttool in command line everything works fine. But in node-red in Generic BLE node after Select from scan result it will return no GATT Characteristics. Only (not available) is in table. On Arduino side I'm using this code: https://github.com/arduino-libraries/ArduinoBLE/tree/master/examples/Peripheral/BatteryMonitor
Also when I try to read the value it returns me Nothing to read. Any suggestions what's wrong?

Thank you scr

dbaba commented 4 years ago

If you're running Node-RED on Raspberry Pi or other linux box, try the latest version (4.0.0). Read Installation Note as well when you install the latest version.

The older version used a raw HCI socket which caused problems like this (gatttool worked but the node didn't). The latest version uses BlueZ D-Bus API directly so I'd say things will be better than before.

dbaba commented 4 years ago

Re-open this or issue a new one when you have a problem with the latest version.