You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Hi - you'll need to have a Bluetooth Low Energy connection to the Bangle. It seems there are a few libraries out there - this may help: https://leancode.co/blog/bluetooth-low-energy-in-flutter

    Once you have that you have two options:

    • You can use the standard 'Nordic UART' protocol that bangle.js provides, like in https://www.espruino.com/Interfacing#bluetooth-le - and then you have access to the REPL (basically the left-hand side of the IDE) so can just call print on the Bangle and receive the data back as text. Looks like there is already an example of this at https://github.com/wolfc01/flutter_reactive_ble_uart_example
    • Or you can use NRF.setServices/NRF.updateServices on the Bangle to make a service specifically for the data you want. There is even a standard one for heart rate, so you could implement that, and then you just need to request that service/characteristic from Flutter and you'll have the data 'right there'. There seems to a project here that uses the HRM characteristic might work if you stripped it down: https://github.com/lmarceau/flutter-bluetooth

About

Avatar for Gordon @Gordon started