-
Notifications
You must be signed in to change notification settings - Fork 51
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
Updating observes from server? #75
Comments
Have you try the example? I think it can be work just change the client method |
It might be because client and server are in different threads in the example? I might have to try that. |
Gave it a try, using that same example and changing |
|
Linux, Fedora 35. You think that might be the cause?
|
Maybe. The error occur on a non-blocking socket. The linux has its' own non-blocking system. Have you try to start the client a little later? |
That was it, adding a barrier (a oneshot channel too, pretty much anything to sync them up) was enough for the example to work. I still think the underlying problem is not resolved, but maybe this could be added as a workaround? It would be useful to have this in an example, as part of the documentation or even inside the library itself (if it makes sense). |
It relates to the OS type. Only a few of OS has the problem. I will add some comments in the example later. |
Also, add that the thread is mandatory, otherwise it produces an error as well. |
commented |
Hi!!! I want to use CoAP-rs for voice assistant components, and we need to use observe, however, there's no support for updating the resources from the server anymore and trying to access the same server from a client in the same process (as a workaround) throws:
Is server-side resource update planned again, or at least, can the workaround be made to work in the meantime?
The text was updated successfully, but these errors were encountered: