-
Notifications
You must be signed in to change notification settings - Fork 13
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
[question] Sending a request from the coap_client #6
Comments
Cc: @shamblett |
Its actually OK but very unclear, the prepare method changes the request itself, it sets defaults, resolves the address and sets the endpoint, at this point the request is ready to be used. You could use the returned one but in this case seeing as we are doing no further preparation we don't need to. The API documentation could make this clearer, also there may well be a better way to do all this. The coap client class is in many ways just supplies a convenient interface to users who don't want to build their own requests, this could be done this using builder classes instead. |
Thank you. I think I must close this for now |
The send function from the
coap_client
class is not using the returned value from the prepape method, it hat right?In the
coap_client
file we have this:Here the
prepare(request)
return aCoapRequest
. I'm wondering if we must use the returned request from the prepare function or it is ok that way.The text was updated successfully, but these errors were encountered: