HTTPS only?

Posted on
  • Hi @Gordon.

    What's up with the whole "Web Bluetooth only works over HTTPS" thing? Obviously that totally sux for development, as people have to develop straight on Github.
    I was thinking that there must be a way to develop locally, so I was planning on making a Docker image with a web server that creates a self-signed certificate, to see if that works.
    I initially tried it over plain HTTP though and I was surprised that I could connect to my Bangle.

    Is that expected? What would you expect to not work?
    Where does it say that Web Bluetooth only works over HTTPS? From my small amount of duckduckgoing, I can only find that you said it once in a workshop that you did... :S

    I think if people were able to just clone the repo and run it locally it would make things way simpler.

    Thanks.

  • Sorry for @ing you twice in a row. I'll try not to make habit of it.

  • Wed 2020.04.29

    'Web Bluetooth only works over HTTPS" thing?'
    'as people have to develop straight on Github'

    May I asked how that was deduced? While it is true that a GitHub requirement is that projects built there must follow their guidelines, development of Espruino JS over BLE may done even using localhost without https: . That is how I do it using Windows10.

    Is it possible that the PC or browser is not configured correctly?

    While it is true that the Puck.js file must be served via https:

    https://www.puck-js.com/go

    development may remain local.

    Troubleshooting (Bluetooth LE)
    Quick Start (Bluetooth LE)


    'just clone the repo and run it locally'

    Why so complex? Just run the WebIDE locally calling in modules that are needed using the require() function.

  • What's up with the whole "Web Bluetooth only works over HTTPS" thing?

    I think it's just part of a general push by browser makers to get people onto HTTPS.

    However it works fine if served from http://localhost

    Only issue if if you're trying to use it from another device, so end up doing http://mypc.local - then it won't work.

    In terms of development, I'd suggest trying to develop mainly with the Web IDE (which'll be much faster), then commit to a GitHub repo and finally test the result on GitHub pages

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

HTTPS only?

Posted by Avatar for user91203 @user91203

Actions