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

Collab #12

Open
MelbourneDeveloper opened this issue Feb 1, 2021 · 3 comments
Open

Collab #12

MelbourneDeveloper opened this issue Feb 1, 2021 · 3 comments

Comments

@MelbourneDeveloper
Copy link

Hi,

Really stoked to find this library. Let's collaborate. This is my framework. I'd like to write an implementation for it using your library.

https://github.com/MelbourneDeveloper/Device.Net

I'm currently trying to get your library working.

Code:

@page "/counter"
@inject IUSB usb

<h1>Counter</h1>

<p>Current count: @currentCount</p>

<button class="btn btn-primary" @onclick="IncrementCount">Click me</button>

@code {

    [Inject] private IUSB _usb { get; set; }

    private int currentCount = 0;

    private async Task IncrementCount()
    {
        await _usb.Initialize();
        var devices = await _usb.GetDevices();
        currentCount = devices.Count();
    }
}

But I get this error:
image

Any ideas?

Christian

@MelbourneDeveloper
Copy link
Author

we are looking on a better way to automatically register to Connect/Disconnect events

I've spent a lot of time on this topic and I'd like to share with you some possible approaches.

@MelbourneDeveloper
Copy link
Author

Same thing with Chrome:

image

@MelbourneDeveloper
Copy link
Author

The test is app sort of working, so that's good!

image

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