The Pixel to connect to.
Optional
opt: { Optional
onCalled before scheduling a retry.
Optional
retries?: numberNumber of retries before aborting.
Auto-reconnect code provided by Google: https://googlechrome.github.io/samples/web-bluetooth/automatic-reconnect-async-await.html
Repeatedly attempts to connect a Pixel die using an exponential back off strategy. It stops trying to connect once it has reached the given number of retries.
We recommend using this function to connect to a Pixel rather than calling directly the Pixel.connect function.