I'm new to Node-RED and interested in sports sensors e.g heart rate, cadence, power etc. I have tried various tools to try and create a BLE device based on inputs from other sensors. I have got an example heart rate sensor flow working using the noble-red-contrib-noble-bluetooth library:
and managed to write the live value to a global variable:
..which I initialised in a separate flow:
( image removed as there's a 2-image limit for new users ! )
What I'd like to do is create a BLE Peripheral node which simply emits the global variable. I can't find an example flow anywhere that does only that. I've saved my Polar OH1 sensor here:
but what would be cool is to be able to use that as a template ( with a new MAC address ? ) so you've got all the placeholders for each service and characteristic.
If someone can show my just a simple how to advertise the primary characteristics ( heart rate measurement + battery level ) then that would be awesome.
Once I've done this I have a slightly bigger project in mind - it's just getting off the ground that's always the tricky bit
Thanks in advance for helping,