![]() |
Accessing Bluetooth LE devices
I recently got a HRM belt thingy (made by MagellanGPS) that I'd like to integrate to my system. The belt uses Bluetooth LE to communicate with a host controller so the first thing to do is to create a BTLE controller for it.
I found an article by @javispedro that describes how it can be done, and as I already have nodejs on my device I decided to use the "noble" npm to implement it. My first rough idea is to have a small nodejs servlet script that connects to the HRM device and presents the gathered heartbeat data in a local socket. This way it is really easy to write a QML client for presentation or integrate it to a sportstracking application. Prerequisities:
That's all it takes really. You'll find some nice exmples under node_modules/noble/examples that give overview of the service discovery and use. However, it seems that even though I can scan for devices and find the HRM belt, I cannot connect to it: Code:
[root@Jolla examples]# Code:
{ _noble: |
Re: Accessing Bluetooth LE devices
Quote:
and more details here : https://developer.bluetooth.org/gatt...heart_rate.xml If you don't yet know this website, you can bookmark it. It is the official developer documentation, listing all profiles, services, descriptors and characteristics, and is really well done : https://developer.bluetooth.org/gatt/Pages/default.aspx For the NodeJS or Jolla specifics, I can not help however, I have only used it a bit through Qt Bluetooth libs found in newer releases (with mixed results) on other targets. |
All times are GMT. The time now is 21:15. |
vBulletin® Version 3.8.8