Skip to content

Commit

Permalink
fix: tryOnMounted will now connect() to gatt server.
Browse files Browse the repository at this point in the history
  • Loading branch information
michealroberts committed Jun 5, 2022
1 parent 08fc11b commit 2983c89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/useBluetooth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export function useBluetooth(options?: UseBluetoothOptions) {

tryOnMounted(() => {
if (device.value)
device.value.gatt?.disconnect()
device.value.gatt?.connect()
})

tryOnScopeDispose(() => {
Expand Down

0 comments on commit 2983c89

Please sign in to comment.