我在https://googlechrome.github.io/samples/web-bluetooth/automatic-reconnect-async-await.html看到了BLE重新连接,它允许你从浏览器页面重新连接 - 在我的情况下,我用micro:bit使用espruino测试了它 . 这样可以正常工作 - 只要不刷新/重新加载网页即可 .

重新加载网页时,设备必须再次配对 .

有没有办法避免这种情况?我希望保留蓝牙设备ID的副本以允许重新连接,但我无法找到任何细节 .

祝福 - 安迪