Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get ConnectableDevice from ConnectableDeviceStore? #262

Open
Kanagizhe opened this issue Mar 6, 2024 · 1 comment
Open

How to get ConnectableDevice from ConnectableDeviceStore? #262

Kanagizhe opened this issue Mar 6, 2024 · 1 comment

Comments

@Kanagizhe
Copy link

After the device is paired successfully, I add the device to the deviceStore. When I start the application again, I can get an NSDictionary, which contains device information and service information. But how do I convert this NSDictionary into a ConnectableDevice? The document introduces that to obtain a strongly typed ConnectableDevice object, please use the getDeviceForUUID: method, but there is no getDeviceForUUID method in the code, and the device obtained using the deviceForId method is incomplete and cannot be controlled.

@HarshadTechmero
Copy link

HarshadTechmero commented Apr 10, 2024

Hi @Kanagizhe i am also working on same SDK in swift but i am not able to send pairing code to device.. can you please help

my code i am fetching device and after selecting device i am connecting using
`self.connectedDevice = obj

self.connectedDevice?.delegate = self

self.connectedDevice?.setPairingType(DeviceServicePairingTypePinCode)

self.connectedDevice?.connect()`

let me know how to send pairing code? if you have sometime

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

No branches or pull requests

2 participants