Open gismo141 opened 7 years ago
Hi @gismo141
as for device address you can usually get it by scanning bluetooth devices, example of a device address would be something like 00:1a:22:06:5a:33
you can also put an invalid value there and send a message to the node, if you check the debug view you will see a warning that the device has not been found and the list of available device addresses.
hope that helps
Thanks @alikh31 for your response.
So apparently I entered the correct address but somehow I only see the disconnected-info below the node.
In the debug view it prints, that the specified device has not been found yet It says to retrieve the available devices but never prints anything.
When I launch the test.js in my node-red/.../noble/ directory, the thermostat is found and some details are listed.
Do I have to do something with the node-red-user? Something special on the Pi?
Thank you very much for your effort and the plugin!
@gismo141 did you get this sorted I really can’t get mine to connect, just keeps saying disconnected
No I am sorry, I've ended in not using Node for the Bluetooth things and set up a complete vanilla system. Then it worked partially with most of the thermostats.
I think I had a similar problem which I fixed by:
1/ installing the proper packages:
apt-get install bluetooth bluez libbluetooth-dev libudev-dev
2/ assure nodered has root privileges (see https://github.com/noble/noble#running-without-rootsudo ) by running following command:
RUN sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
@gismo141 is it OK to close this issue or do you need some further help with this ?
Somehow I am unable to get a connection :)
I have some questions:
Thanks in advance!