HTTP requests initiated from Bangle 2

Posted on
  • I'm wondering what options there are for initiating HTTP requests from Bangle 2. I found this thread which was helpful, but it's a bit old and I have some questions.

    I'm looking for a way to initiate an HTTP request from the Bangle by for example sending some data over BLE to an Android phone and the phone would perform the HTTP request. However, I read that the Bangle can only have one bluetooth connection at a time. My phone is normally connected to Gadgetbridge all the time. Would that interfere with sending data over BLE? If I have to manually disconnect Gadgetbridge first, then it's kind of pointless.

    Also, is there any way to send data to Gadgetbridge for it to perform an HTTP request? It would eliminate the need to write a separate Android app. I'd rather avoid having to write an Android app and would prefer to use something like Dory NodeJS instead to run a small NodeJS script in the background. But if Gadgetbridge could do it, wouldn't even need that.

    Any examples would be appreciated. Thanks in advance!

  • Internet connections through Gadgetbridge is a major no-no for them. But, Gordon has gotten the all clear to create a special version just for us that's planned for the beginning of next year. You can check the status of stuff like that here:
    https://github.com/espruino/BangleApps/w­iki/Bangle.js-2-Status

    Until then you'll need something else...

    There might also be hope for multiple connections in the near future:
    http://forum.espruino.com/comments/16289­113/

  • Oh, glad to hear, that would be perfect. I'll wait for that then. Thanks!

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

HTTP requests initiated from Bangle 2

Posted by Avatar for Andres @Andres

Actions