daphtdazz / WebBLE

iOS WebBluetooth Polyfill
Other
110 stars 38 forks source link

advertise / reconnect to safe battery #58

Open kpckpc opened 1 year ago

kpckpc commented 1 year ago

To safe battery in my gadget, I wanted to change to advertising instead of a connection that has to be kept alive. It seems that WebBLE did not implement advertising support yet.

So instead I tried to opt for a polling reconnect instead (shifting the battery burden to the phone instead). But this does not seem to work in WebBLE. I tried one of the examples from the Web Bluetooth examples. https://googlechrome.github.io/samples/web-bluetooth/automatic-reconnect.html On my PC and under android this works, even on the Iphone under the other app (B...F..) the example works, but not on WebBLE.

Edit: I just noticed another ticket, probably the same issue: https://github.com/daphtdazz/WebBLE/issues/48