Skip to content

feat: add getConnectedDevice method and update TypeScript definitions - #1

Open
mateusdegobi wants to merge 7 commits into
vardrz:masterfrom
mateusdegobi:master
Open

feat: add getConnectedDevice method and update TypeScript definitions#1
mateusdegobi wants to merge 7 commits into
vardrz:masterfrom
mateusdegobi:master

Conversation

@mateusdegobi

Copy link
Copy Markdown

Problem

Error using the BluetoothManager.getConnectedDevice method
image

Fix

  • Created the getConnectedDevice method
  • Added the missing native methods:
    • unpair(address: string) — unpairs a device
    • isDeviceConnected() — returns a boolean
    • getConnectedDeviceAddress() — returns the address as a string
    • getConnectedDevice() — now works, returns { name, address } or null
    • Event constants (EVENT_DEVICE_FOUND, EVENT_CONNECTION_LOST, etc.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant