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

not to use singleton mode #351

Closed
ludy520 opened this issue Jun 26, 2023 · 4 comments
Closed

not to use singleton mode #351

ludy520 opened this issue Jun 26, 2023 · 4 comments

Comments

@ludy520
Copy link

ludy520 commented Jun 26, 2023

It is best not to use singleton mode, otherwise it will be troublesome to connect multiple devices at the same time

@FXschwartz
Copy link

It is best not to use singleton mode, otherwise it will be troublesome to connect multiple devices at the same time

I don't see how using a singleton makes it troublesome to connect to multiple devices at the same time. Connecting to multiple devices at the same time is a very easy thing to do that I haven't seen any issues with.

@ludy520
Copy link
Author

ludy520 commented Jun 28, 2023

It is best not to use singleton mode, otherwise it will be troublesome to connect multiple devices at the same time

I don't see how using a singleton makes it troublesome to connect to multiple devices at the same time. Connecting to multiple devices at the same time is a very easy thing to do that I haven't seen any issues with.

For example, if I connect two devices at the same time and subscribe to the connection status in a single case, it is impossible to distinguish which device the current connection status belongs to.

@FXschwartz
Copy link

For example, if I connect two devices at the same time and subscribe to the connection status in a single case, it is impossible to distinguish which device the current connection status belongs to.

It is not impossible, you can use the device and device service from the connection and each will have its own unique ID.

@chipweinberger
Copy link
Owner

multiple devices works fine

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

3 participants