update bluetooth flow since we can't get pin until after pairing initiated from android side

This commit is contained in:
liamcottle
2024-12-19 23:23:14 +13:00
parent c0f37e3972
commit 028571e6ac
2 changed files with 25 additions and 22 deletions

View File

@@ -1750,11 +1750,12 @@
console.log("start bluetooth pairing");
const pin = await rnode.startBluetoothPairing();
console.log("start bluetooth pairing: done");
alert(`Bluetooth Pairing Pin: ${pin}`);
} catch(error) {
alert(error);
}
alert("RNode should now be in Bluetooth Pairing mode. A pin will be shown on the screen when you pair with it from Android bluetooth settings.");
// done
await rnode.close();