Do you need it to be able to send data over 'in the background', or would it be acceptable to have the phone turned on and showing a webpage?
Because if you could have the webpage showing then you can just use Web Bluetooth and it's pretty easy. For example there's some code for real-time streaming at http://www.espruino.com/Bangle.js+Data+Streaming
Otherwise you're going to have to write some kind of Android app as @d3nd3-o0 says. If you don't want to get stuck into full-on Android development you might have some luck with DroidScript I guess: https://www.espruino.com/DroidScript+Puck.js
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi,
Do you need it to be able to send data over 'in the background', or would it be acceptable to have the phone turned on and showing a webpage?
Because if you could have the webpage showing then you can just use Web Bluetooth and it's pretty easy. For example there's some code for real-time streaming at http://www.espruino.com/Bangle.js+Data+Streaming
Otherwise you're going to have to write some kind of Android app as @d3nd3-o0 says. If you don't want to get stuck into full-on Android development you might have some luck with DroidScript I guess: https://www.espruino.com/DroidScript+Puck.js
For Gadgetbridge, if you did want to customise it the code is at https://codeberg.org/Freeyourgadget/Gadgetbridge
The Bangle.js code you care about is in https://codeberg.org/Freeyourgadget/Gadgetbridge/src/branch/master/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/banglejs/BangleJSDeviceSupport.java and you could just add some code to handleUartRxJSON to handle communication from the Bangle
The developer doesn't use GitHub because they blocked him temporarily due to a fraudulent DMCA request and it scared him off.