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.
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