Jon Shallow

Results 272 comments of Jon Shallow

> I will go through and create a PR so that we do not get name clashes when using things like write. This should now be fixed in the latest...

Good question. This was following how all of the other COAP_MUTEX_DEFINE() variants have been defined. Actual variable does not end up with a leading _, but all the usage of...

> Btw, is there any plan to have a release with all these lwip changes ? We are shortly going to be releasing 4.3.2 release candidate 1 (4.3.2rc1) which includes...

Is it that `c` is getting returned as NULL, or is it crashing somewhere in `coap_malloc_type()` / `memp_malloc()` ? In `examples/lwip/config/lwipopts.h `the libcoap example for LwIP has `#define MEMP_USE_CUSTOM_POOLS 1`...

Interesting - I would be expecting the addresses to be sequentially incrementing, so it looks like it is not picking up `LWIP_MEMPOOL(COAP_CONTEXT, MEMP_NUM_COAPCONTEXT, sizeof(coap_context_t), "COAP_CONTEXT")` from your final lwippools.h. I...

Yes, lwip_init() should be called before coap_startup() before coap_new_context().

It looks like LOCK_TCPIP_CORE() was invoked in coap_io_process(), which then timed out and called coap_io_process_timeout(), which then called coap_io_prepare_io(), which then tried to send out an unsolicited observe response, or...

The example lwip-server code has `coap_context_set_max_idle_sessions(main_coap_context, MEMP_NUM_COAPSESSION -1);` included to force idle sessions to be cleaned up in `coap_endpoint_get_session()`, which leaves space for one new incoming session. An idle session...

Are you able to get this to work now?

The multicast response is deliberately delayed as per [RFC7252 Section 8.2 Request/Response Layer](https://datatracker.ietf.org/doc/html/rfc7252#section-8.2), which uses the async logic - hence the LOCK_TCPIP_CORE() fix you are doing in coap_socket_send(). I will...