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

Async client status? #25

Open
asmakhalil opened this issue Mar 21, 2022 · 2 comments
Open

Async client status? #25

asmakhalil opened this issue Mar 21, 2022 · 2 comments

Comments

@asmakhalil
Copy link

asmakhalil commented Mar 21, 2022

Hello!

I was implementing the coap RUST crate example: https://github.com/Covertness/coap-rs but then I learned that the client implementation is blocking. That lead me to this library, can anyone confirm that the coap-rs crate example is in fact blocking (at least the client bit) and if so would I be able to use this library to implement a non-blocking client? Or is it still a work in progress?

I also found this feature branch that modifies the coap-rs lib to have a non-blocking client: https://github.com/ryankurte/coap-rs/tree/feature/async-client, would I be able to just apply these changes and use the modified crate to achieve an async client?

Thank you!

Asma

@ryankurte
Copy link
Owner

howdy,

can anyone confirm that the coap-rs crate example is in fact blocking (at least the client bit) and if so would I be able to use this library to implement a non-blocking client?

when i last looked at it, coap-rs only had a blocking client, hence the branch. i looked at extending this as you've discovered, but ended up implementing the basics here instead. it's likely there are things missing yet, but coap-client provides an async coap client impl over tokio that i have been using fine for some years.

would I be able to just apply these changes and use the modified crate to achieve an async client?

probably, i'm not sure what state that branch is in.

@asmakhalil
Copy link
Author

Hey!

Thanks for getting back to me!

Using coap-client am I able to send different payloads set at command line? Or would I have to modify the lib itself to do that?

Thanks!

Asma

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