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

Device Polling Layer #3

Closed
MelbourneDeveloper opened this issue Oct 17, 2018 · 1 comment
Closed

Device Polling Layer #3

MelbourneDeveloper opened this issue Oct 17, 2018 · 1 comment

Comments

@MelbourneDeveloper
Copy link
Owner

MelbourneDeveloper commented Oct 17, 2018

Put a layer over polling for all platforms

-The factories should hang on to a reference of the devices that they have created
-Logic for checking if the device is connected should be disconnected from the device itself (i.e. Android's CheckForDevice)
-The factories should handle disconnection and connection
-When the factory scans for devices is, if an existing device is still connected, this device should be retrieved so as to not create a new one. The question is, what to do if the handle is no longer valid... Connect and disconnect?

On platforms like Windows, polling will occur with a timer. When the timer is called, the factory should check to see if the device is still connected. If not, the device should be disposed which should call the Disconnected event.

On Android, there is no need for a timer because there is an event for when a device is connected or disconnected. This might be possible on Windows and UWP in the long run...

@MelbourneDeveloper MelbourneDeveloper transferred this issue from another repository Dec 27, 2018
@MelbourneDeveloper MelbourneDeveloper moved this from Maybe to Mostly Done in Release 2.4.0 Jan 6, 2019
@MelbourneDeveloper
Copy link
Owner Author

Done in 2.3

@MelbourneDeveloper MelbourneDeveloper removed this from Mostly Done in Release 2.4.0 Jan 14, 2019
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

1 participant