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

Does libcoap with LwIP supports Client applications ? #591

Closed
fun-works opened this issue Jan 12, 2021 · 4 comments
Closed

Does libcoap with LwIP supports Client applications ? #591

fun-works opened this issue Jan 12, 2021 · 4 comments
Labels

Comments

@fun-works
Copy link

No description provided.

@mrdeep1
Copy link
Collaborator

mrdeep1 commented Jan 12, 2021

I don't see why it should not be able to do this. There currently is only a server example, and it should not be difficult to add a client example if someone wants to volunteer.

@obgm obgm added the question label Apr 22, 2021
@Borodkov
Copy link

Hello
Thanks for your time and work with this lib

--

may be "it should not be difficult to add a client example", but can you (@mrdeep1 or @obgm) help in this questions:

  • how to create client session with lwip, that will be equal to client in libcoap-minimal repo?
  • coap_io_lwip.c tested with coap client build?

what I try to do:
coap_session_t *session = coap_new_client_session(ctx, &src, &dst, COAP_PROTO_UDP);
-> coap_session_t *session = coap_session_create_client(ctx, local_if, server, proto);
-> and in line 823 of coap_session.c
->

if (!coap_socket_connect_udp(&session->sock, local_if, server,

and next, in coap_io_lwip.c, in function coap_socket_connect_udp()

return 0;

finaly, I goto error; and session == NULL, and I'm here with the same problem as topic starter

--

sry for my english

@mrdeep1
Copy link
Collaborator

mrdeep1 commented Jul 23, 2022

PR #884 has been raised which provides LwIP coap-client support.

@mrdeep1
Copy link
Collaborator

mrdeep1 commented Sep 22, 2022

Closed as fixed in #926 which is now in the develop branch. Client support is now available.

@mrdeep1 mrdeep1 closed this as completed Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants