Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Cannot create device object without opening Discover channel #180

Open
Jakob-k opened this issue Jan 25, 2023 · 0 comments
Open

Cannot create device object without opening Discover channel #180

Jakob-k opened this issue Jan 25, 2023 · 0 comments

Comments

@Jakob-k
Copy link

Jakob-k commented Jan 25, 2023

I am trying to create device objects to connect to. I already know the MAC address. It works fine as long as a Discover service has been started, regardless of whether I am using the returned events from the channel or a hardcoded address.
The issue is that the function for creating the device object returns nil if I use it without starting the Discover service.

Is there some sort of hidden dependency that some parameters can only be obtained through the Discover service?
I have tried both NewDevice1 and NewDevice functions. Both works with Discover started but none do without it.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant