-
• #2
Try https://www.espruino.com/Interfacing, it has gatttool demos. Also I would wrap the gatttool in the shell command timeout.
-
• #3
Thanks. I tried gatttool, but like the other tools, it never sees the Bangle.js 2. It sees countless other devices in the area, but not the watch. Curious.
-
• #4
hcitool lescan
may show it if the watch is advertising. It is not advertising by default when something is connected to it but this can be changed (via whenConnected option of NRF.setAdvertising).
I'm hoping to use Bluetooth LE and my Bangle.js 2 to let my Linux laptop detect whether I'm it. I've read all kinds of Linux tutorials on using hcitool, gattttool, and other command-line tools, but I've never been able to get one of them to detect the watch. (It detects my phone and other devices just fine.) Does anyone know of a way to detect whether the watch is nearby on the Linux command line?
Thanks for any clues.